http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51768
Bug #: 51768 Summary: [4.5/4.6/4.7 Regression] ICE with invalid asm goto Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org void foo (void) { asm goto ("" : : : : lab, lab, lab2, lab);/* { dg-error "duplicate asm operand name" } */ lab:; lab2:; } void bar (void) { asm goto ("" : : [lab] "i" (0) : : lab);/* { dg-error "duplicate asm operand name" } */ lab:; } ICEs with tree-checking (or just crashes during error reporting if not tree checking).