ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / partial16.C
blob30c34c3e0d988b64e5312e5fdb7a9001e2277762
1 // [temp.spec.partial.general]/9
3 template <class T, T t> struct C {};
4 template <class T> struct C<T, 1>;              // { dg-error "depends on a template parameter" }
6 template< int X, int (*array_ptr)[X] > class A {};
7 int array[5];
8 template< int X > class A<X,&array> { };        // { dg-error "depends on a template parameter" }