Disable the member-of namespace check when -std != gmqcc

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 19:43:34 +02:00
parent d88e3e8f24
commit 7cc1609117

View file

@ -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) {