[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #6 from Jonathan Wakely --- (In reply to Daniel Krügler from comment #4) > I don't think that this correct here (In C++11 the rules became relaxed). It was post-C++11, but as a DR we should implement it, and I see you're right, the in

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #5 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #2) > Although shouldn't it fail to compile, due to private destructor and copy > constructor? I agree, it should fail. Interesting is, that the code compiles even w

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-11 Thread mattyclarkson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #3 from Matt Clarkson --- Thanks for that link, its very informative :) I can see why it fails to link now. About the private destructor, I'd expect it to not compile, but it does. I actually didn't even realise I'd made it private a

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #2 from Jonathan Wakely --- Although shouldn't it fail to compile, due to private destructor and copy constructor?

[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link

2013-06-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588 --- Comment #1 from Jonathan Wakely --- Isn't this just http://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition ?