This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52085] incomplete enum not completed correctly if packed was used
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Feb 2016 19:46:58 +0000
- Subject: [Bug c/52085] incomplete enum not completed correctly if packed was used
- Auto-submitted: auto-generated
- References: <bug-52085-4 at http dot gcc dot gnu dot org/bugzilla/>
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__));