#include <iostream>
using namespace std;
class A {
struct {
int a;
char b;
private:
bool c;
} s;
A() : s ({ 3, 'c' }) {}
};
int main() {
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQSB7CgkKCXN0cnVjdCAgewoJCWludCBhOwoJCWNoYXIgYjsKCXByaXZhdGU6CgkJYm9vbCBjOwoJfSBzOwoJCglBKCkgOiBzICh7IDMsICdjJyB9KSB7fQoJCn07CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9
prog.cpp: In constructor ‘A::A()’:
prog.cpp:13:21: error: no matching function for call to ‘A::<anonymous struct>::._84(<brace-enclosed initializer list>)’
A() : s ({ 3, 'c' }) {}
^
prog.cpp:13:21: note: candidates are:
prog.cpp:6:10: note: A::<anonymous struct>::<constructor>()
struct {
^
prog.cpp:6:10: note: candidate expects 0 arguments, 1 provided
prog.cpp:6:10: note: constexpr A::<anonymous struct>::<constructor>(const A::<anonymous struct>&)
prog.cpp:6:10: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const A::<anonymous struct>&’
prog.cpp:6:10: note: constexpr A::<anonymous struct>::<constructor>(A::<anonymous struct>&&)
prog.cpp:6:10: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘A::<anonymous struct>&&’