http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51016

             Bug #: 51016
           Summary: "asm goto" crashes if used in static class method
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ores...@cs.columbia.edu


Created attachment 25747
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25747
Simple code that displays the bug

If an "asm goto" block is placed as a C++ static class method
it crashes while for normal C global function it works fine.

Please see the attached file.
I created a very simple program that shows the bug.
If you place the cas function outside as a global function it works fine.
But if it is written inside the class it crashes.

Of course the point was not just to write the function inside but
also write it as cas(node**, node*, node*) to avoid writing casting.

Orestis

Reply via email to