This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2003 01:43:52 -0000
- Subject: [Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
- References: <20010731174601.3907.fasbjx@free.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3907
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-09-15 01:43 -------
Subject: Bug 3907
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: mmitchel@gcc.gnu.org 2003-09-15 01:43:46
Modified files:
gcc/cp : ChangeLog class.c cp-tree.h decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: template12.C
Log message:
PR c++/3907
* cp-tree.h (innermost_scope_is_class_p): New function.
* class.c (maybe_note_name_used_in_class): Refine test for whether
or not we are in a class scope.
* decl.c (innermost_scope_is_class_p): Define.
PR c++/3907
* g++.dg/parse/template12.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.206&r2=1.3076.2.207
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.499.2.20&r2=1.499.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.32&r2=1.776.2.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.61&r2=1.965.2.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.279&r2=1.2261.2.280
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/template12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1