From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12174 invoked by alias); 3 Mar 2011 14:39:42 -0000 Received: (qmail 12163 invoked by uid 22791); 3 Mar 2011 14:39:41 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Mar 2011 14:39:37 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/47971] New: [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11725 on valid code 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: zsojka at seznam dot cz 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" MIME-Version: 1.0 Date: Thu, 03 Mar 2011 14:39:00 -0000 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: 2011-03/txt/msg00296.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47971 Summary: [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11725 on valid code Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Created attachment 23530 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23530 reduced testcase $ gcc testcase.C testcase.C: In constructor 'S< >::S() [with = double]': testcase.C:7:11: instantiated from here testcase.C:4:10: internal compiler error: in tsubst_copy, at cp/pt.c:11725 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. (gdb) bt #0 fancy_abort (file=0x120a958 "/mnt/svn/gcc-trunk/gcc/cp/pt.c", line=11725, function=0x120fcbd "tsubst_copy") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892 #1 0x000000000055cb25 in tsubst_copy (t=, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:11725 #2 0x000000000055ff61 in tsubst_copy_and_build (t=0x7ffff5bdc690, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, function_p=0 '\000', integral_constant_expression_p=) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:13382 #3 0x000000000055fbab in tsubst_copy_and_build (t=0x7ffff5bc8840, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, function_p=, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12980 #4 0x00000000005608a2 in tsubst_copy_and_build (t=0x7ffff5bc8880, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, function_p=0 '\000', integral_constant_expression_p=) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12862 #5 0x0000000000554e39 in tsubst_expr (t=0x7ffff5bc8880, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12422 #6 0x0000000000555bc9 in tsubst_expr (t=0x7ffff7ecea80, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:11998 #7 0x0000000000554ee9 in tsubst_expr (t=0x7ffff5bc8800, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12163 #8 0x0000000000555505 in tsubst_expr (t=, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:11984 #9 0x0000000000554ee9 in tsubst_expr (t=0x7ffff5bc87c0, args=0x7ffff5bee050, complain=3, in_decl=0x7ffff5bec450, integral_constant_expression_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:12163 #10 0x0000000000581fe2 in instantiate_decl (d=0x7ffff5bdf500, defer_ok=, expl_inst_class_mem_p=0 '\000') at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17421 #11 0x0000000000589444 in instantiate_pending_templates (retries=) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17518 #12 0x00000000005b7942 in cp_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/cp/decl2.c:3684 #13 0x0000000000a2c998 in compile_file (argc=13, argv=0x7fffffffdbc8) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 Tested revisions: r170622 - crash 4.5 r170013 - OK 4.4 r170013 - OK