Re: [PATCH] C FE: use correct location range for static assertions

2015-12-15 Thread Jeff Law
On 12/15/2015 09:51 AM, David Malcolm wrote: When issuing diagnostics for _Static_assert, we currently ignore the location/range of the asserted expression, and instead use the location/range of the first token within it, which can be incorrect for compound expressions: error: expression in stat

Re: [PATCH] C FE: use correct location range for static assertions

2015-12-15 Thread Marek Polacek
On Tue, Dec 15, 2015 at 11:51:49AM -0500, David Malcolm wrote: > When issuing diagnostics for _Static_assert, we currently ignore the > location/range of the asserted expression, and instead use the > location/range of the first token within it, which can be > incorrect for compound expressions: >

[PATCH] C FE: use correct location range for static assertions

2015-12-15 Thread David Malcolm
When issuing diagnostics for _Static_assert, we currently ignore the location/range of the asserted expression, and instead use the location/range of the first token within it, which can be incorrect for compound expressions: error: expression in static assertion is not constant _Static_assert