http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55250

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-11-09
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-09 
12:51:52 UTC ---
(In reply to comment #0)
> Now, reading http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf
> , it is not entirely unambiguous which behavior is correct.

That paper is five years old, so not relevant to what C++11 allows.

The standard says:

The definition of a constexpr function shall satisfy the following constraints:
[...]
— its function-body shall be = delete, = default, or a compound-statement that
contains only
— null statements,
— static_assert-declarations
— typedef declarations and alias-declarations that do not define classes or
enumerations,
[...]

so it's ill-formed to declare an enumeration.

Reply via email to