This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52085] sizeof packed enum can vary without warning depending on include order
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 06:14:55 +0000
- Subject: [Bug c/52085] sizeof packed enum can vary without warning depending on include order
- Auto-submitted: auto-generated
- References: <bug-52085-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52085
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 06:14:55 UTC ---
http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Incomplete-Enums.html#Incomplete-Enums
>From the sound of it, the declaration using the incomplete enum should have
been rejected.