https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72777

Jiang An <de34 at live dot cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |de34 at live dot cn

--- Comment #2 from Jiang An <de34 at live dot cn> ---
(In reply to bloerwald from comment #1)
> Note: compiles fine in c++11 mode of clang 3.8, so not sure if it actually
> is forbidden by the standard.
In C++11 this program is ill-formed, no diagnostic required.
Because the definition of dop satisfies the diagnostic-requiring rules of
constexpr functions (C++11 [dcl.constexpr]), but dop can't produce a constant
expression as a compound assignment is fobidden in constant evalution (C++11
[expr.const]).

Reply via email to