This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]