Re: [PATCH] C++: improve location of static_assert errors

2017-11-29 Thread Jason Merrill
OK. On Wed, Nov 29, 2017 at 4:26 PM, David Malcolm wrote: > Whilst investigating PR c++/82893 I noticed that the location > of static_assert diagnostics uses that of the "static_assert" > token, which seemed suboptimal to me, e.g.: > > error: non-constant condition for static assertion > sta

[PATCH] C++: improve location of static_assert errors

2017-11-29 Thread David Malcolm
Whilst investigating PR c++/82893 I noticed that the location of static_assert diagnostics uses that of the "static_assert" token, which seemed suboptimal to me, e.g.: error: non-constant condition for static assertion static_assert(sizeof(Baz) == 8, ""); ^ This patch change