This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Improve diagnostic for invalid using declarations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]