This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78495] [7 regression][new inheriting ctors] invisible-ref parm has address taken


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78495

--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Mon Nov 20 14:39:00 2017
New Revision: 254958

URL: https://gcc.gnu.org/viewcvs?rev=254958&root=gcc&view=rev
Log:
[PR c++/82878] pass-by-invisiref in lambda

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01115.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:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr82878.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/lambda.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C
    trunk/gcc/testsuite/g++.dg/cpp1z/inh-ctor38.C

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]