https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86661
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Wed Aug 1 12:09:33 2018 New Revision: 263207 URL: https://gcc.gnu.org/viewcvs?rev=263207&root=gcc&view=rev Log: /cp 2018-08-01 Paolo Carlini <paolo.carl...@oracle.com> PR c++/86661 * class.c (note_name_declared_in_class): Use location_of in permerror instead of DECL_SOURCE_LOCATION (for OVERLOADs). /testsuite 2018-08-01 Paolo Carlini <paolo.carl...@oracle.com> PR c++/86661 * g++.dg/lookup/name-clash12.C: New. Added: trunk/gcc/testsuite/g++.dg/lookup/name-clash12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/testsuite/ChangeLog