This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52247] New: [4.5/4.6/4.7 Regression] ICE with asm goto


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]