summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vla3.C
blob: 329cc7dde00c745a0aecdd0d8eb926076315dfb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// PR c++/28903
// { dg-options "" }

template <class>
struct View 
{
  int n;
};
template <class ViewA>
struct ViewDom : View<ViewA>
{
  using View<ViewA>::n;
  ViewDom();
};
template <class ViewA>
ViewDom<ViewA>::ViewDom()
{
  char a[n];
}
void element( )
{
  ViewDom<int> a;
}