This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jun 2013 10:42:22 +0000
- Subject: [Bug c++/57588] [C++11][constexpr] static constexpr in class fails to link
- Auto-submitted: auto-generated
- References: <bug-57588-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57588
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(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 initialization of int_ uses the lvalue-to-rvalue conversion immediately so
it isn't odr-used.
I've created PR 57594 and PR 57595 for the missing diagnostics.