[C++/84812] ICE with local fn decl
commit4aaa9b043210f23d8d4cd075ebdb597e203dc62d
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2018 14:07:07 +0000 (19 14:07 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2018 14:07:07 +0000 (19 14:07 +0000)
treecf5836b4dd649317ac52ccb8af41202f384510b2
parent9a01c6e5228a4992cff9ae23187cffa3be896e2e
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258644 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr84812.C [new file with mode: 0644]