1 // { dg-do compile { target c++11 } }
2 template <int N> struct A { static void foo(){} };
3 template <> struct A<sizeof(char)> { using foo = int; };
5 template <class T> void f(T t1) {
9 template <class T> void g(T t2) {
10 /* if the comparing_specializations check breaks in cp_tree_equal
11 case PARM_DECL, the error will incorrectly report A<sizeof (t1)> */
12 A<sizeof(t2)>::foo(); // { dg-error "dependent-name .A<sizeof .t2.>::foo" }