aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array64.C
blob: bbdd70c6df8c59d7876fe27d629fb9406a35d8e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/59465
// { dg-do compile }

static const int my_size = 10;

class UserType
{
public:
  UserType(): f_(){}
private:
int f_;
};

typedef UserType Array[my_size];

class Foo
{
public:
  Foo(Array& m) : m_(m) {};  // { dg-error "array must be initialized" }
private:
  Array m_;
};