re PR c++/52247 (ICE with asm goto)
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Feb 2012 19:51:01 +0000 (20:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 14 Feb 2012 19:51:01 +0000 (20:51 +0100)
commit61c8513078d1ef99c98aee7f53750f6e356a56d3
tree7d7f339c1b7acf2718543dccd602e6bcd16acf33
parent72824d5e40692acaba4e7635b0b26f2e8e48b059
re PR c++/52247 (ICE with asm goto)

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.

From-SVN: r184229
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/asmgoto1.C [new file with mode: 0644]