This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51016] New: "asm goto" crashes if used in static class method
- From: "orestis at cs dot columbia.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Nov 2011 23:35:27 +0000
- Subject: [Bug c++/51016] New: "asm goto" crashes if used in static class method
- Auto-submitted: auto-generated
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