[Bug c++/20589] error: '<anonymous enum>' is/uses anonymous type'

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 23 16:57:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list