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++/31300] undetected class name clash



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


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