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: