From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 17:43:34 +0000 (+0200) Subject: Disable the member-of namespace check when -std != gmqcc X-Git-Tag: 0.1-rc1~185 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7cc160911776dd72d205b21fca1f063325eb7d89;p=xonotic%2Fgmqcc.git Disable the member-of namespace check when -std != gmqcc --- 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) {