This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Improve diagnostic for invalid using declarations
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 23 Dec 2005 19:30:19 +0100
- Subject: Re: [patch] Improve diagnostic for invalid using declarations
- References: <tkrat.b8d939c07a0c17ec@igpm.rwth-aachen.de>
Volker Reichelt <reichelt@igpm.rwth-aachen.de> writes:
| For the testcase
|
| using N::i;
|
| we get the error message
|
| bug.cc:1: error: 'N' has not been declared
| bug.cc:1: error: '<declaration error>::i' has not been declared
|
| The second line is superfluous IMHO.
| The following patch removes the second error message by bypassing
| name-lookup in cp_parser_using_declaration on invalid scope.
|
| Bootstrapped and regtested on x86_64-unknown-linux-gnu.
| Ok for mainline?
| Ok for the 4.1 branch, since the "<declaration error>" message is a
| regression from previous versions?
OK for mainline; ask Mark for 4.1.
Thanks,
-- Gaby