[Bug c++/79533] [7 Regression] ICE in build_over_call under -std=c++17 in 'S s(static_cast<S const &>(f()));'
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 17 16:51:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79533
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 17 16:50:16 2017
New Revision: 245538
URL: https://gcc.gnu.org/viewcvs?rev=245538&root=gcc&view=rev
Log:
PR c++/79533 - C++17 ICE with temporary cast to reference
* call.c (build_over_call): Conversion to a reference prevents copy
elision.
Added:
trunk/gcc/testsuite/g++.dg/init/elide6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
More information about the Gcc-bugs
mailing list