[Bug c/52085] incomplete enum not completed correctly if packed was used
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Sat Feb 6 19:47:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52085
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #6 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
note: the enum forward declaration can have an __attribute__((whatever))
but it is completely ignored which would be OK, but there should be at least
a warning, "warning: 'whatever' attribute directive ignored [-Wattributes]"
example:
enum __attribute__ ((whatever)) e1;
enum e1 { A } __attribute__ ((__packed__));
More information about the Gcc-bugs
mailing list