bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/23424] gold doesn't build on Darwin


From: zenith432 at users dot sourceforge.net
Subject: [Bug gold/23424] gold doesn't build on Darwin
Date: Tue, 17 Jul 2018 18:31:43 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]