[Bug c++/80507] [C++17] static variable definition not emitted with -std=c++1z when defined as constexpr

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 24 21:10:00 GMT 2017


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.


More information about the Gcc-bugs mailing list