aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vlm1.C
blob: 61628e6bba48949610040e702a8550f0ada60598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-options "" }

template <class T> struct A {};
 
struct B {
  static const int s;
  A<int[s]> a; // { dg-error "variably modified|no type" }
};
 
const int B::s=16;
 
B b;