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/21759] Implement warning for codes at the intersection of C and C++



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


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