This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84494] Invalid constexpr with default assignment operator
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Feb 2018 09:30:47 +0000
- Subject: [Bug c++/84494] Invalid constexpr with default assignment operator
- Auto-submitted: auto-generated
- References: <bug-84494-4@http.gcc.gnu.org/bugzilla/>
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: