OSDN Git Service

Fix PR c++/43800
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Apr 2010 19:23:45 +0000 (19:23 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 01:07:32 +0000 (10:07 +0900)
commit4518d968bf7d768307907eef8f9969575ba066f3
tree7b0e5eb1e356aaac1030470cf696da7b7c79d5f4
parent2b36d5f25a7c214f1c12d287d57af984ff7a0c5e
Fix PR c++/43800

gcc/cp/ChangeLog:
PR c++/43800
PR c++/43704
* typeck.c (incompatible_dependent_types_p): If one of the
compared types if not a typedef then honour their main variant
equivalence.

gcc/testsuite/ChangeLog:
PR c++/43800
PR c++/43704
* g++.dg/template/typedef32.C: Adjust.
* g++.dg/template/typedef33.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158571 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/typedef32.C