This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77274] GCC uses copy constructor in member initializer list instead of simple initialization
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Aug 2016 12:06:20 +0000
- Subject: [Bug c++/77274] GCC uses copy constructor in member initializer list instead of simple initialization
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-77274-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77274
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The copy can be optimized away, but the object still has to be copyable for
that to happen. If you delete the copy constructor it's not copyable.