The following invalid code produces an internal compiler error on 4.0.0. 3.3.0
and 2.95.2:
$ cat ros.i
struct s {
int x, y, z;
};
void f (struct s s) {
asm ("%0" : : "a" (s));
}
$ gcc-4.0 ros.i
ros.i: In function 'f':
ros.i:6: internal compiler error: in emit_move_insn, at expr.c:3092
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ice on inline asm with invalid constraint
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at broadmeadow dot plus dot com
GCC build triplet: i386-gnu-linux
GCC host triplet: i386-gnu-linux
GCC target triplet: i386-gnu-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26077