[Bug c++/46449] Class in a CPP override a class from another CPP

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 12 10:16:00 GMT 2010


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-12 10:15:01 UTC ---
this is not valid C++, you can't have two globally-visible classes with the
same name in one program, you need to rename them or put them in separate
namespaces.



More information about the Gcc-bugs mailing list