This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21759] Implement warning for codes at the intersection of C and C++
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2008 22:26:44 -0000
- Subject: [Bug c/21759] Implement warning for codes at the intersection of C and C++
- References: <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-07-06 22:26 -------
>Not sure what the exact error message was.
Easy, the decls were not defined :). Basically the enums get the scope of the
struct they are defined in for C++ but in C, they get the global scope. A
warning for this is not that useful really if we are going to move to C++ where
we want them in the scope of the struct rather than the global scope.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759