aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-01-02 16:19:26 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-01-02 16:19:26 +0000
commit56bbd9d6aa0374c942f843ab796bbcf7eab6e39d (patch)
tree902d1639e791f2973cc4b570effe8c212ba32cd8 /gcc/cp/parser.c
parent49d5c016dae45d256509c0ea80c983e431dce5cd (diff)
downloadgcc-56bbd9d6aa0374c942f843ab796bbcf7eab6e39d.zip
gcc-56bbd9d6aa0374c942f843ab796bbcf7eab6e39d.tar.gz
gcc-56bbd9d6aa0374c942f843ab796bbcf7eab6e39d.tar.bz2
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
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 86d7edbc..90d1486 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -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)