]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/auto25.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto25.C
1 // PR c++/42056
2 // { dg-do compile { target c++11 } }
3
4 template<int> struct A
5 {
6 int a[auto(1)]; // { dg-error "9:invalid use of" }
7 };
8
9 template<int> void foo()
10 {
11 int a[auto(1)]; // { dg-error "9:invalid use of" }
12 }
This page took 0.039441 seconds and 5 git commands to generate.