The following testcase triggers an ICE since at least GCC 2.95.3: ============================= void i;
void foo() { __asm__ ("" : "+r" (i)); } ============================= bug.c: In function 'foo': bug.c:5: internal compiler error: in gimplify_expr, at gimplify.c:5902 Please submit a full bug report, [etc.] The C++ frontend emits a proper error message. -- Summary: ICE on invalid arguments for inline-asm Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28503