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++/84375] [8 Regression] ICE with friend in local class


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

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Fri Feb 16 14:30:55 2018
New Revision: 257739

URL: https://gcc.gnu.org/viewcvs?rev=257739&root=gcc&view=rev
Log:
[PR c++/84375] Fix ICE after bad friend

https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00987.html
        PR c++/84375
        * name-lookup.c (do_pushdecl): Bail out on bad local friend injection.

        * g++.dg/lookup/pr84375.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/lookup/pr84375.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog

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