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: [email protected]
ReportedBy: [email protected]
// { 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.