1 // PR c++/70204
2 // { dg-do compile { target c++11 } }
3 
4 int a;
5 
6 template < int N, int I >
fn1()7 void fn1 ()
8 {
9   const int x = I * a, y = x;
10   fn1 < y, I > (); // { dg-error "constant|no match" }
11 }
12 
13 int
main()14 main ()
15 {
16   fn1 < 0, 0 > ();
17   return 0;
18 }
19