[Bug c++/78495] [7 regression][new inheriting ctors] invisible-ref parm has address taken
nathan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 26 13:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78495
--- Comment #6 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Fri Jan 26 13:48:37 2018
New Revision: 257089
URL: https://gcc.gnu.org/viewcvs?rev=257089&root=gcc&view=rev
Log:
[C++/82878] backport fix
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02170.html
PR c++/82878
PR c++/78495
* call.c (build_call_a): Don't set CALL_FROM_THUNK_P for inherited
ctor.
* cp-gimplify.c (cp_genericize_r): Restore THUNK dereference
inhibibition check removed in previous c++/78495 change.
PR c++/82878
* g++.dg/cpp0x/pr82878.C: New.
* g++.dg/cpp1z/inh-ctor38.C: Check moves too.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr82878.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/call.c
branches/gcc-7-branch/gcc/cp/cp-gimplify.c
branches/gcc-7-branch/gcc/cp/lambda.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/inh-ctor38.C
More information about the Gcc-bugs
mailing list