Follow-up Comment #1, bug #27201 (project avr-libc):

The problem is that accessing the union (and also struct,
for byte-wide access) elements without naming the union
itself is a GCC extension, so it is turned off when compiling
with -std=c99.

It appears to me that prepending the entire union declaration
with __extension__ does fix it by telling GCC "It's OK to use
the following GCC extension here, regardless of the --std
option in effect".

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27201>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to