OSDN Git Service

Fix PR c++/42225
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 14:36:05 +0000 (14:36 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 14:36:05 +0000 (14:36 +0000)
commitd7f79c8890d12b5ac37f59b9e5171ca6f4fe3b41
treefcebb61777e39028dfd13660e12098519b9ca084
parent62ed126e6a4f6b95a0986b8ae5db9cee9f32a83b
Fix PR c++/42225

gcc/cp/ChangeLog:
PR c++/42225
* typeck.c (incompatible_dependent_typedefs_p): New function.
(structural_comptypes): Use it.
* cp-tree.h (cp_set_underlying_type): Declare ...
* tree.c (cp_set_underlying_type): ... new function.
* class.c (build_self_reference): Use cp_set_underlying_type
instead of set_underlying_type.
* decl2.c (grokfield): Likewise.
* name-lookup.c (pushdecl_maybe_friend): Likewise.

gcc/testsuite/ChangeLog:
PR c++/42225
* g++.dg/template/typedef24.C: New test.
* g++.dg/template/typedef25.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155160 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/name-lookup.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/typedef24.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/typedef25.C [new file with mode: 0644]