1 // Copyright (C) 2004 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5 // Check the type of non-type parameter in template template parameter
6 // only if it is dependent.
8 template <template <int* p> class T>
11 template <typename U, template <U* p> class T>
16 template <int* p> struct Z {};
19 Y<char, Z> y2; // { dg-error "mismatch|expected|invalid" }