This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51604] [C++11][constexpr] Initializing static constexpr data members for class templates
- 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: Sun, 18 Dec 2011 00:53:28 +0000
- Subject: [Bug c++/51604] [C++11][constexpr] Initializing static constexpr data members for class templates
- Auto-submitted: auto-generated
- References: <bug-51604-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51604
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-18 00:53:28 UTC ---
(In reply to comment #0)
> GCC 4.5 (g++-4.5 (Ubuntu/Linaro 4.5.3-9ubuntu1) 4.5.4) compiles this happily.
Because GCC 4.5 doesn't support 'constexpr' (it parses the keyword to check
syntax but doesn't implement any constexpr semantics)
I agree with Daniel's analysis, the code is invalid.