From 7cc160911776dd72d205b21fca1f063325eb7d89 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 19:43:34 +0200 Subject: [PATCH] Disable the member-of namespace check when -std != gmqcc --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 3608171..a2b3f06 100644 --- a/parser.c +++ b/parser.c @@ -1182,7 +1182,7 @@ static ast_expression* parser_expression_leave(parser_t *parser, bool stopatcomm olast = NULL; } - if (op->id == opid1('.')) { + if (op->id == opid1('.') && opts_standard == COMPILER_GMQCC) { /* for gmqcc standard: open up the namespace of the previous type */ ast_expression *prevex = sy.out[sy.out_count-1].out; if (!prevex) { -- 2.39.2