| 1 |
// Testcase from P0136 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct M { M(); M(int); }; |
| 5 |
struct N : M { using M::M; }; |
| 6 |
struct O : M {}; |
| 7 |
struct P : N, O { using N::N; using O::O; }; |
| 8 |
P p(0); // OK: use M(0) to initialize N's base class, |
| 9 |
// use M() to initialize O's base class |