GCC 7 needs temporary for brace-initializing (non-literal-type) member variable?

2017-10-06 Thread Titus Von Boxberg
Hello, this sample fails to compile with gcc 7.1 and 7.2 -- class A { private: public: constexpr A() {} ~A() {} }; class B { private: A a; public: constexpr B() : a{} {} // works also with g++ -std=c++17: // constexpr B() : a() {} ~B() {} }; -- with error:

Re: GCC 7 needs temporary for brace-initializing (non-literal-type) member variable?

2017-10-06 Thread Jonathan Wakely
On 6 October 2017 at 21:51, Titus Von Boxberg wrote: > Or should I file a bug? Or is there already one I could not find? This mailing list is not for "is this a bug?" questions. This looks like a bug, so please create a bug report in Bugzilla, thanks.