PR c++/13651
* parser.c (cp_parser_postfix_expression): When encountering
incomplete type on left-hand side of "->" or ".", treat the entire
expression as erroneous.
From-SVN: r76180
2004-01-19 Mark Mitchell <mark@codesourcery.com>
+ PR c++/13651
+ * parser.c (cp_parser_postfix_expression): When encountering
+ incomplete type on left-hand side of "->" or ".", treat the entire
+ expression as erroneous.
+
PR c++/13592
* call.c (build_field_call): Remove.
(n_build_method_call): Likewise.
being dependent. */
if (!scope)
scope = error_mark_node;
+ /* If the SCOPE was erroneous, make the various
+ semantic analysis functions exit quickly -- and
+ without issuing additional error messages. */
+ if (scope == error_mark_node)
+ postfix_expression = error_mark_node;
}
/* Consume the `.' or `->' operator. */