------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-05 18:08 ------- ((Union)l) This creates an rvalue and a new temp variable. But since (rvalue.byte[0]) is valid in C99 (but not in C90), you can assign it. If you used -pedantic, you get a warning about that: t.c:9: warning: ISO C forbids casts to union type t.c:9: warning: ISO C90 forbids subscripting non-lvalue array
Anyways, this is not a bug. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28611