[PATCH] C FE: fix range of primary-expression in c_parser_postfix_expression

2015-12-15 Thread David Malcolm
In the C frontend, c_parser_postfix_expression after parsing a primary expression passes "loc", the location of the *first token* in that expression to c_parser_postfix_expression_after_primary, which thus discards any range information we had for primary expressions containing more than one to

Re: [PATCH] C FE: fix range of primary-expression in c_parser_postfix_expression

2015-12-16 Thread Marek Polacek
On Tue, Dec 15, 2015 at 09:11:38PM -0500, David Malcolm wrote: > In the C frontend, > c_parser_postfix_expression > after parsing a primary expression passes "loc", the location of the > *first token* in that expression to > c_parser_postfix_expression_after_primary, > which thus discards any r