This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67200] Copy elision and implicit move in return performed in cases not allowed by standard
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2016 20:12:20 +0000
- Subject: [Bug c++/67200] Copy elision and implicit move in return performed in cases not allowed by standard
- Auto-submitted: auto-generated
- References: <bug-67200-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67200
TC <rs2740 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from TC <rs2740 at gmail dot com> ---
Appears to be fixed in GCC 6, presumably by the delayed folding changes:
main.cpp: In function 'A f()':
main.cpp:9:23: error: use of deleted function 'A::A(const A&)'
return true ? a : a;
^
main.cpp:3:5: note: declared here
A(const A&) = delete;
^