https://sourceware.org/bugzilla/show_bug.cgi?id=23424

--- Comment #1 from zenith432 at users dot sourceforge.net ---
Feeding CXXFLAGS="-std=c++11" to configure also does the job...

cat main.cxx 
class X
{
public:
        struct _T { int a; int b; } s;

        X(void) : s({1, 2}) {}
};

static X theX;

extern "C" int main()
{
        return 0;
}

clang main.cxx 
main.cxx:7:14: error: expected expression
        X(void) : s({1, 2}) {}
                    ^
1 error generated.

clang -std=c++11 main.cxx
[ok]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to