Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-70204a.C

raw
1 // PR c++/70204
2 // { dg-do compile { target c++11 } }
3
4 int a;
5
6 template < int N, int I >
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
14 main ()
15 {
16 fn1 < 0, 0 > ();
17 return 0;
18 }