This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58102] rejects valid initialization of constexpr object with mutable member
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Sep 2014 16:27:11 +0000
- Subject: [Bug c++/58102] rejects valid initialization of constexpr object with mutable member
- Auto-submitted: auto-generated
- References: <bug-58102-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58102
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Richard I'm trying to fix this bug, and while working on a draft I noticed that
current clang accepts:
struct A
{
int i;
mutable int j;
};
constexpr A a = { 0, 1 };
constexpr A b = a;
ie, doesn't reject the last line, whereas we actively do and we think we are
doing the right thing. What's your opinion?