re PR c++/45330 (Suggest likely nested-name-specifiers for undeclared identifiers.)
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 14 Dec 2010 20:31:22 +0000 (20:31 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Tue, 14 Dec 2010 20:31:22 +0000 (20:31 +0000)
commit993acb366ebf8a43f66669950b385710eba931cb
treea3f1edf7efd982b0735aec9f5727133cb89fece1
parentec047df48239928a1776c10e7e5f11c76c6974a5
re PR c++/45330 (Suggest likely nested-name-specifiers for undeclared identifiers.)

gcc/cp/
PR c++/45330
* cp-tree.h (suggest_alternatives_for): Add location_t parameter.
* name-lookup.c (suggest_alternatives_for): Likewise.  Adjust.
* lex.c (unqualified_name_lookup_error): Adjust call to it.
* semantics.c (qualified_name_lookup_error): Move to...
* error.c (qualified_name_lookup_error): ...here.  Call.
suggest_alternatives_for.

gcc/testsuite/
PR c++/45330
* g++.dg/lookup/suggestions1.C: New test.

From-SVN: r167814
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/lex.c
gcc/cp/name-lookup.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/suggestions1.C [new file with mode: 0644]