aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/flexary35.C
blob: b62c718fb0b3a0c07ac4fcb2ab681e454c238514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/93618
// { dg-do compile { target c++11 } }
// { dg-options "" }

template <typename T>
struct C {
  ~C () = default;
  T *p = nullptr;
};

class A {
  struct B {
    int c;
    C<B*> d[];
  };
  void foo (int f) { B s; s.c = f; }
  B e;
};