diff options
author | Dodji Seketeli <dodji@redhat.com> | 2010-09-06 18:44:23 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2010-09-06 20:44:23 +0200 |
commit | e6c2fc5dace4a6b80f65378578f4425515d7243b (patch) | |
tree | 4632c0080a473a464c988e9d9cf35edb808bb6dc /gcc/cp/typeck.c | |
parent | 3c7ac37eea95be3f08fca1573116ca494158728f (diff) | |
download | gcc-e6c2fc5dace4a6b80f65378578f4425515d7243b.zip gcc-e6c2fc5dace4a6b80f65378578f4425515d7243b.tar.gz gcc-e6c2fc5dace4a6b80f65378578f4425515d7243b.tar.bz2 |
Patch PR c++/45200
Fix PR c++/45200, c++/45293, c++/45558
gcc/cp/Changelog:
PR c++/45200
PR c++/45293
PR c++/45558
* tree.c (strip_typedefs): Strip typedefs from the context of
TYPENAME_TYPEs.
gcc/testsuite/ChangeLog:
PR c++/45200
PR c++/45293
PR c++/45558
* g++.dg/template/typedef34.C: New test.
* g++.dg/template/typedef35.C: New test.
From-SVN: r163929
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index e96272f..0ac95d0 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1220,7 +1220,7 @@ incompatible_dependent_types_p (tree t1, tree t2) if (!t1_typedef_variant_p || !t2_typedef_variant_p) /* Either T1 or T2 is not a typedef so we cannot compare the - the template parms of the typedefs of T1 and T2. + template parms of the typedefs of T1 and T2. At this point, if the main variant type of T1 and T2 are equal it means the two types can't be incompatible, from the perspective of this function. */ |