c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor13.C
blobbd021e6e6d5c86253653c857a3833bee1cefc275
1 // { dg-do compile { target c++11 } }
3 struct A
5   int i;
6   template <class T> A(T t);
7 };
9 struct C
11   C() = delete;                 // { dg-message "declared here" }
14 struct B: A, C
16   using A::A;                   // { dg-error "C::C" }
19 int main()
21   B b(24);                      // { dg-error "B::B" }