parser.c (cp_parser_using_declaration): Skip name-lookup on invalid scope.
* parser.c (cp_parser_using_declaration): Skip name-lookup on invalid scope. * g++.dg/lookup/using12.C: Tighten error marker. From-SVN: r109237
This commit is contained in:
parent
49d5c016da
commit
56bbd9d6aa
4 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
* parser.c (cp_parser_using_declaration): Skip name-lookup on
|
||||
invalid scope.
|
||||
|
||||
2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||
|
||||
* cxx-pretty-print.c (pp_cxx_constant): New. Print
|
||||
|
|
|
@ -10486,7 +10486,7 @@ cp_parser_using_declaration (cp_parser* parser)
|
|||
|
||||
/* The function we call to handle a using-declaration is different
|
||||
depending on what scope we are in. */
|
||||
if (identifier == error_mark_node)
|
||||
if (qscope == error_mark_node || identifier == error_mark_node)
|
||||
;
|
||||
else if (TREE_CODE (identifier) != IDENTIFIER_NODE
|
||||
&& TREE_CODE (identifier) != BIT_NOT_EXPR)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
* g++.dg/lookup/using12.C: Tighten error marker.
|
||||
|
||||
2006-01-01 Andreas Tobler <a.tobler@schweiz.ch>
|
||||
Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// PR c++/16707
|
||||
|
||||
int i;
|
||||
using N::i; // { dg-error "declared|expected" }
|
||||
using N::i; // { dg-error "'N' has not been declared" }
|
||||
|
|
Loading…
Add table
Reference in a new issue