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++/20589] error: '<anonymous enum>' is/uses anonymous type'


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-23 16:57 -------
(In reply to comment #4)
> The workaround is trivial. But I'm still confused as to what exactly causes gcc
> to treat unnamed enums so much differently that named ones. It would be great if
> I could get some clarity on this. I have a handful of cases like this in the
> openoffice.org code base and OOo is reluctant to take the patches to fix unless
> sure it's currently invalid.

Because the standard treats them differently.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589


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