]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-70204a.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-70204a.C
CommitLineData
a3e2b438
PP
1// PR c++/70204
2// { dg-do compile { target c++11 } }
3
4int a;
5
6template < int N, int I >
7void fn1 ()
8{
9 const int x = I * a, y = x;
10 fn1 < y, I > (); // { dg-error "constant|no match" }
11}
12
13int
14main ()
15{
16 fn1 < 0, 0 > ();
17 return 0;
18}
This page took 2.919124 seconds and 5 git commands to generate.