This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18100] [3.4/4.0 regression] template member with same name as class not rejected
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2004 20:35:34 -0000
- Subject: [Bug c++/18100] [3.4/4.0 regression] template member with same name as class not rejected
- References: <20041021205738.18100.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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