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++/51016] New: "asm goto" crashes if used in static class method


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: unassigned@gcc.gnu.org
        ReportedBy: orestis@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


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