gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi11.C
raw| 1 | // PR c++/113332 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct tuple { |
| 5 | template<class _Tp> |
| 6 | static constexpr bool __is_implicitly_default_constructible() { return true; } |
| 7 | |
| 8 | template<class _Tp = void, |
| 9 | bool = __is_implicitly_default_constructible<_Tp>()> |
| 10 | tuple(); |
| 11 | }; |
| 12 | |
| 13 | struct DBusStruct { |
| 14 | private: |
| 15 | tuple data_; |
| 16 | }; |
| 17 | |
| 18 | struct IBusService { |
| 19 | int m = [] { DBusStruct{}; return 42; }(); |
| 20 | }; |