[Bug c++/18100] [3.4/4.0 regression] template member with same name as class not rejected

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 16 20:35:00 GMT 2004


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-11-16 20:35 -------
At least we have an error message now.
But the error message isn't quite correct.
The 3.3 branch gives a better one:

PR18100.cc:2: error: duplicate nested type `struct A'

Kriang, the ICE was introduced with your name-lookup patch
http://gcc.gnu.org/ml/gcc-cvs/2004-11/msg00680.html
Maybe you want to have a look at this one.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lerdsuwa at gcc dot gnu dot
                   |                            |org
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |3.4.0 3.4.3 4.0.0
      Known to work|                            |3.3.5


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



More information about the Gcc-bugs mailing list