With gcc 4.0.1, compiling the following results in an ICE: void foo () { label: asm ("" : : "g" (*&&label)); }
Admittedly I don't expect it to do anything useful, but I was told in #gcc that I should report the ICE anyways. (For what it's worth, this same code snippet compiles without error in gcc 3.3 and 3.4.) -- Summary: ICE on dereferencing a label in an asm statement Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrd at alkemio dot org CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i386-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448