This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31300] undetected class name clash
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 02:13:33 -0000
- Subject: [Bug c++/31300] undetected class name clash
- References: <bug-31300-14285@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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