https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71238
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Mon May 30 19:18:13 2016 New Revision: 236896 URL: https://gcc.gnu.org/viewcvs?rev=236896&root=gcc&view=rev Log: /cp 2016-05-30 Paolo Carlini <paolo.carl...@oracle.com> PR c++/71238 * lex.c (unqualified_name_lookup_error): Take a location too. (unqualified_fn_lookup_error): Take a cp_expr. * cp-tree.h (unqualified_name_lookup_error, unqualified_fn_lookup_error): Adjust declarations. * semantics.c (perform_koenig_lookup): Adjust unqualified_fn_lookup_error call, pass the location of the identifier too as part of a cp_expr. /testsuite 2016-05-30 Paolo Carlini <paolo.carl...@oracle.com> PR c++/71238 * g++.dg/parse/pr71238.C: New. * g++.dg/concepts/friend1.C: Test column numbers too. * g++.dg/cpp0x/initlist31.C: Likewise. * g++.dg/cpp0x/pr51420.C: Likewise. * g++.dg/cpp0x/udlit-declare-neg.C: Likewise. * g++.dg/cpp0x/udlit-member-neg.C: Likewise. * g++.dg/ext/builtin3.C: Likewise. * g++.dg/lookup/friend12.C: Likewise. * g++.dg/lookup/friend7.C: Likewise. * g++.dg/lookup/koenig1.C: Likewise. * g++.dg/lookup/koenig5.C: Likewise. * g++.dg/lookup/used-before-declaration.C: Likewise. * g++.dg/overload/koenig1.C: Likewise. * g++.dg/template/crash65.C: Likewise. * g++.dg/template/friend57.C: Likewise. * g++.dg/warn/Wshadow-5.C: Likewise. * g++.dg/warn/Wunused-8.C: Likewise. * g++.old-deja/g++.bugs/900211_01.C: Likewise. * g++.old-deja/g++.jason/lineno5.C: Likewise. * g++.old-deja/g++.jason/member.C: Likewise. * g++.old-deja/g++.jason/report.C: Likewise. * g++.old-deja/g++.jason/scoping12.C: Likewise. * g++.old-deja/g++.law/visibility20.C: Likewise. * g++.old-deja/g++.ns/koenig5.C: Likewise. * g++.old-deja/g++.other/static5.C: Likewise. * g++.old-deja/g++.pt/overload2.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/parse/pr71238.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/lex.c trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/concepts/friend1.C trunk/gcc/testsuite/g++.dg/cpp0x/initlist31.C trunk/gcc/testsuite/g++.dg/cpp0x/pr51420.C trunk/gcc/testsuite/g++.dg/cpp0x/udlit-declare-neg.C trunk/gcc/testsuite/g++.dg/cpp0x/udlit-member-neg.C trunk/gcc/testsuite/g++.dg/ext/builtin3.C trunk/gcc/testsuite/g++.dg/lookup/friend12.C trunk/gcc/testsuite/g++.dg/lookup/friend7.C trunk/gcc/testsuite/g++.dg/lookup/koenig1.C trunk/gcc/testsuite/g++.dg/lookup/koenig5.C trunk/gcc/testsuite/g++.dg/lookup/used-before-declaration.C trunk/gcc/testsuite/g++.dg/overload/koenig1.C trunk/gcc/testsuite/g++.dg/template/crash65.C trunk/gcc/testsuite/g++.dg/template/friend57.C trunk/gcc/testsuite/g++.dg/warn/Wshadow-5.C trunk/gcc/testsuite/g++.dg/warn/Wunused-8.C trunk/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C trunk/gcc/testsuite/g++.old-deja/g++.jason/lineno5.C trunk/gcc/testsuite/g++.old-deja/g++.jason/member.C trunk/gcc/testsuite/g++.old-deja/g++.jason/report.C trunk/gcc/testsuite/g++.old-deja/g++.jason/scoping12.C trunk/gcc/testsuite/g++.old-deja/g++.law/visibility20.C trunk/gcc/testsuite/g++.old-deja/g++.ns/koenig5.C trunk/gcc/testsuite/g++.old-deja/g++.other/static5.C trunk/gcc/testsuite/g++.old-deja/g++.pt/overload2.C