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.

Reply via email to