]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Disable the member-of namespace check when -std != gmqcc
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 17:43:34 +0000 (19:43 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 17:43:34 +0000 (19:43 +0200)
parser.c

index 3608171b31855f8e4dee2aaf4283f3ade7b45a39..a2b3f060eed51e5edc7bbd7f1876b2fa7fd6f686 100644 (file)
--- 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) {