aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r--gcc/c-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index de6999a..e08f436 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -4803,10 +4803,11 @@ c_parser_postfix_expression (c_parser *parser)
}
{
tree id = c_parser_peek_token (parser)->value;
+ location_t loc = c_parser_peek_token (parser)->location;
c_parser_consume_token (parser);
expr.value = build_external_ref (id,
(c_parser_peek_token (parser)->type
- == CPP_OPEN_PAREN));
+ == CPP_OPEN_PAREN), loc);
expr.original_code = ERROR_MARK;
}
break;