[PR c++/84375] Fix ICE after bad friend
authorNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Feb 2018 14:30:55 +0000 (14:30 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 16 Feb 2018 14:30:55 +0000 (14:30 +0000)
commitb1a7e33d67c9a3d4e7d390d28ae2f178861421cc
tree03a6da9299ca46f6483961a387a9c68f8801c730
parent08223f7633e228cb4ab7a9125a50c4f8ce2e16bb
[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.

From-SVN: r257739
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr84375.C [new file with mode: 0644]