]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/parser.c
cp-tree.def (LOOKUP_EXPR): Remove.
[thirdparty/gcc.git] / gcc / cp / parser.c
index bfce0ca8d34877096979cc5f40eb2d0564853043..33f1d793ce0ce019d144a788432694ee089208a2 100644 (file)
@@ -3438,7 +3438,8 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p)
   /* Keep looping until the postfix-expression is complete.  */
   while (true)
     {
-      if (TREE_CODE (postfix_expression) == IDENTIFIER_NODE
+      if (idk == CP_ID_KIND_UNQUALIFIED
+         && TREE_CODE (postfix_expression) == IDENTIFIER_NODE
          && cp_lexer_next_token_is_not (parser->lexer, CPP_OPEN_PAREN))
        /* It is not a Koenig lookup function call.  */
        postfix_expression