re PR c++/48010 (typedef redefinitions are allowed if the redefined type is a nested...
authorFabien Chêne <fabien@gcc.gnu.org>
Tue, 31 May 2011 19:02:19 +0000 (21:02 +0200)
committerFabien Chêne <fabien@gcc.gnu.org>
Tue, 31 May 2011 19:02:19 +0000 (21:02 +0200)
commitff7714547ff7aaaac44011e2184fc876945ad0a5
tree97fbbfa522f7cabcc14f432ab9403e0da183ef5f
parentd73b65b6dbed146ca88c93a183eae1cbe7b430b1
re PR c++/48010 (typedef redefinitions are allowed if the redefined type is a nested class type)

gcc/cp/ChangeLog

2010-05-31  Fabien Chene  <fabien@gcc.gnu.org>

PR c++/48010
* name-lookup.c (supplement_binding_1): If the old binding was a
type name, also check that the DECL actually refers to the same
type or is not a type.

gcc/testsuite/ChangeLog

2010-05-31  Fabien Chene  <fabien@gcc.gnu.org>

PR c++/48010
* g++.dg/lookup/name-clash9.C: New.

From-SVN: r174506
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/name-clash9.C [new file with mode: 0644]