1// PR c++/11962
2// { dg-options "" }
3
4template<int X> class c;
5
6template<int X, int Y> int test(c<X ? : Y>&); // { dg-error "omitted" }
7
8void test(c<2>*c2) {
9	test<0, 2>(*c2);
10}
11