This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/52085] incomplete enum not completed correctly if packed was used


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__));

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]