2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / pr80534-1.C
bloba8545a7b65f3ca0f944cc56ed0d6b5dd8f517b27
1 // PR c++/80534
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
5 template <int> struct A {
6   struct type {
7     char __data[0];
8   };
9 };
10 template <typename _Tp, typename = _Tp> struct B;
11 template <typename _Tp, typename _Dp> struct B<_Tp[], _Dp> {
12   _Tp _M_t;
13   using pointer = int;
14   void m_fn1() {}
16 struct C {
17   using Storage = A<0>::type;
18   using StorageUniquePointer = B<Storage[]>;
19   void m_fn2() { storageUniquePointer_.m_fn1(); }
20   StorageUniquePointer storageUniquePointer_;