pt.c (dependent_type_p_push): New fn.

* pt.c (dependent_type_p_push): New fn.
        * cp-tree.h: Declare it.
        * tree.c (canonical_type_variant): Use TYPE_CANONICAL.

From-SVN: r148189
This commit is contained in:
Jason Merrill 2009-06-04 17:39:15 -04:00 committed by Jason Merrill
parent 90409e4c8a
commit efd7670918
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-06-04 Jason Merrill <jason@redhat.com>
* g++.dg/template/error38.C: Add pointer-to-typedef case.
2009-06-04 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/vect/vect-42.c: Modify vect_no_align case.

View File

@ -26,6 +26,7 @@ void f (T &t, int = 0); // { dg-message "" }
typedef int myint;
myint i;
myint *p;
int main()
{
@ -34,4 +35,5 @@ int main()
a.g(); // { dg-error "" }
f(i); // { dg-error "" }
f(p); // { dg-error "" }
}