[Bug c++/25492] [4.0/4.1/4.2 Regression] friend class nested in derived class problem
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 4 01:03:00 GMT 2006
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-01-04 01:03 -------
Subject: Bug 25492
Author: mmitchel
Date: Wed Jan 4 01:03:26 2006
New Revision: 109305
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109305
Log:
PR c++/25492
* name-lookup.c (push_class_level_binding): When a derived class
provides a type binding, eliminate any type binding from a base
class.
PR c++/25625
* repo.c (repo_emit_p): Always instantiate static data members
initialized by constant expressions, so that there values are
available.
PR c++/25492
* g++.dg/lookup/friend9.C: New test.
PR c++/25625
* g++.dg/template/repo5.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/lookup/friend9.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/repo5.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/name-lookup.c
branches/gcc-4_0-branch/gcc/cp/repo.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25492
More information about the Gcc-bugs
mailing list