This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52247] [4.5/4.6 Regression] ICE with asm goto
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Feb 2012 23:36:24 +0000
- Subject: [Bug c++/52247] [4.5/4.6 Regression] ICE with asm goto
- Auto-submitted: auto-generated
- References: <bug-52247-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-14 23:36:24 UTC ---
Author: jakub
Date: Tue Feb 14 23:36:19 2012
New Revision: 184244
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184244
Log:
Backported from mainline
2012-02-14 Jakub Jelinek <jakub@redhat.com>
PR c++/52247
* pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
lookup_label on label's name and set TREE_USED.
* g++.dg/template/asmgoto1.C: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/asmgoto1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog