[Bug c++/31300] undetected class name clash

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 23 02:13:00 GMT 2007



------- Comment #7 from bangerth at dealii dot org  2007-03-23 02:13 -------
(In reply to comment #4)
> I agree , sure it is invalid ,(no mine at the root)  but a diagnostic 
> would be nice

It is very hard for a compiler to detect this because it only sees that there
is a class 'T'. The compiler would need to know whether the declaration
came from a header file that both .cc files include or was truly meant to
be a local class. 

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org


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



More information about the Gcc-bugs mailing list