This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80507] [C++17] static variable definition not emitted with -std=c++1z when defined as constexpr
- 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: Mon, 24 Apr 2017 21:09:55 +0000
- Subject: [Bug c++/80507] [C++17] static variable definition not emitted with -std=c++1z when defined as constexpr
- Auto-submitted: auto-generated
- References: <bug-80507-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80507
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-04-24
Ever confirmed|0 |1
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I thought the original in-class declaration needed to be constexpr, but
actually that would be invalid if it didn't have an in-class initializer.