[Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 15 01:56:00 GMT 2003
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
More information about the Gcc-bugs
mailing list