This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52247] New: [4.5/4.6/4.7 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 15:13:00 +0000
- Subject: [Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52247
Bug #: 52247
Summary: [4.5/4.6/4.7 Regression] ICE with asm goto
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: jakub@gcc.gnu.org
ReportedBy: jakub@gcc.gnu.org
// { dg-do compile }
template <int N>
bool
bar ()
{
__asm goto ("" : : : : lab);
return true;
lab:
return false;
}
bool
foo ()
{
return bar<0> ();
}
ICEs, because pt.c doesn't adjust the LABEL_DECL properly.