]>
Commit | Line | Data |
---|---|---|
d8af1a55 | 1 | // PR c++/56285 |
4b2e63de | 2 | // { dg-do compile { target c++11 } } |
d8af1a55 JM |
3 | |
4 | struct foo { | |
5 | explicit foo(int&&) {} | |
6 | }; | |
7 | ||
8 | struct bar: private foo { | |
9 | using foo::foo; | |
10 | }; | |
11 | ||
12 | int main() | |
13 | { | |
14 | bar b { 42 }; | |
15 | } |