inline void foo (void *ptr, long n) { __asm__ __volatile__ ("" : : "m" (__extension__ ({ struct { char x[n]; } *p = ptr; *p; })));
} void bar (void) { char buf[16]; foo (buf, sizeof foo); } ICEs in tree_cst_low, apparently GCC attempts to create a VLA through non-VLA mechanism (expand_one_stack_var). -- Summary: ICE on convoluted inline asm with "m" (statement expression) Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: inline-asm AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org GCC target triplet: i686-linux, x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27301