[Bug target/56562] [AVR GCC] segmentation fault when '__attribute__((packed))' placed at front of enum declaration
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 7 22:42:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56562
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |avr
Priority|P3 |P4
Status|UNCONFIRMED |RESOLVED
Known to work| |4.7.2
Keywords| |ice-on-valid-code
CC| |gjl at gcc dot gnu.org
Resolution| |WORKSFORME
Target Milestone|--- |4.7.2
Severity|major |normal
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2013-03-07 22:42:08 UTC ---
I can confirm this whith 4.7.1 20120322 (prerelease).
It works fine with 4.7.2 and 4.8.0 (experimental):
<stdin>:1:32: warning: attribute ignored in declaration of 'enum FooEnum'
[-Wattributes]
__attribute__(( packed )) enum FooEnum
^
<stdin>:1:32: note: attribute for 'enum FooEnum' must follow the 'enum' keyword
It works also with the packed attribute in the right place.
Whatever the issue was, it's fixed in latest 4.7, thus closing this as
WORKSFORME.
More information about the Gcc-bugs
mailing list