[Bug c++/84494] Invalid constexpr with default assignment operator
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 21 09:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84494
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-21
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, clang++ prints 10 10.
Started with r233956, before that it was rejected:
error: explicitly defaulted function ‘constexpr X& X::operator=(const X&)’
cannot be declared as constexpr because the implicit declaration is not
constexpr:
More information about the Gcc-bugs
mailing list