[C++/84812] ICE with local fn decl
authorNathan Sidwell <nathan@acm.org>
Mon, 19 Mar 2018 14:07:07 +0000 (14:07 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 19 Mar 2018 14:07:07 +0000 (14:07 +0000)
commit8f3284a4866183caec602737f35c088d982e18bb
treecf5836b4dd649317ac52ccb8af41202f384510b2
parent25f91fda52f88f4a639a30ec33d821f1acb9c058
[C++/84812] ICE with local fn decl

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00872.html
PR c++/84812
* name-lookup.c (set_local_extern_decl_linkage): Defend against
ambiguous lookups.

PR c++/84812
* g++.dg/lookup/pr84812.C: New.

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