Bug 51016 - "asm goto" crashes if used in static class method
Summary: "asm goto" crashes if used in static class method
Status: RESOLVED DUPLICATE of bug 50943
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.6.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 23:35 UTC by orestis
Modified: 2011-11-07 23:48 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Simple code that displays the bug (593 bytes, text/x-c++src)
2011-11-07 23:35 UTC, orestis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orestis 2011-11-07 23:35:27 UTC
Created attachment 25747 [details]
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
Comment 1 Andrew Pinski 2011-11-07 23:48:00 UTC
This is basically an exact dup of bug 50943.

*** This bug has been marked as a duplicate of bug 50943 ***