http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54450
Bug #: 54450 Summary: Extended asm in global scope Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: inline-asm AssignedTo: unassig...@gcc.gnu.org ReportedBy: just.sere...@gmail.com This code compiles fine: __asm__ ( "my_function:\n\t" "jmp *%eax\n\t" ); but this doesn't: void *ptr; __asm__ ( "my_function:\n\t" "jmp *%0\n\t" : : "r"(ptr) ); error: expected ')' before ':' token (on the jmp line)