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 05:34:26 +0000 (14:34 +0900)
commit6caaf9e2a61e620d6659ba4b609eebbb1d7d7f70
treecf81b12a32e734952337bcf2742afa3d4dfb049d
parent321f20833b52427cf5e6e4e9a8515b448a65628a
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/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/typedef32.C