From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20463 invoked by alias); 14 Oct 2012 23:50:57 -0000 Received: (qmail 20450 invoked by uid 48); 14 Oct 2012 23:50:40 -0000 From: "cas43 at cs dot stanford.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54929] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349 Date: Sun, 14 Oct 2012 23:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cas43 at cs dot stanford.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01356.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54929 Bug #: 54929 Summary: internal compiler error: in tsubst_copy, at cp/pt.c:12349 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: cas43@cs.stanford.edu Input: template class A {void F(){sizeof(double);}}; template class A; Expected result: compile successfully. Output: prog.cpp: In instantiation of =E2=80=98void A::F() [with T =3D int]=E2= =80=99: prog.cpp:2:16: required from here prog.cpp:1:43: internal compiler error: in tsubst_copy, at cp/pt.c:12349 template class A {void F(){sizeof(double);}}; ^ 0x5835ca tsubst_copy ../../s-4.8/gcc/cp/pt.c:12349 0x57364e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../s-4.8/gcc/cp/pt.c:13476 0x573543 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../s-4.8/gcc/cp/pt.c:13501 0x57aeba tsubst_expr ../../s-4.8/gcc/cp/pt.c:13156 0x57c8c8 tsubst_expr ../../s-4.8/gcc/cp/pt.c:12641 0x57c465 tsubst_expr ../../s-4.8/gcc/cp/pt.c:12811 0x579d86 instantiate_decl(tree_node*, int, bool) ../../s-4.8/gcc/cp/pt.c:18633 0x5b43a3 instantiate_pending_templates(int) ../../s-4.8/gcc/cp/pt.c:18732 0x5efc00 cp_write_global_declarations() ../../s-4.8/gcc/cp/decl2.c:3993 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Output from g++ -v: Using built-in specs. COLLECT_GCC=3D/new-gcc/i-4.8/bin/g++ COLLECT_LTO_WRAPPER=3D/new-gcc/i-4.8/libexec/gcc/x86_64-unknown-linux-gnu/4= .8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../s-4.8/configure --prefix=3D/new-gcc/i-4.8 Thread model: posix gcc version 4.8.0 20121014 (experimental) (GCC)=20 Sorry if this bugs gets duplicated; I cannot find the original.