On Sat, May 02, 2015 at 04:16:18PM -0400, Ed Smith-Rowland wrote:
> This extends' static assert to not require a message string.
> I elected to make this work also for C++11 and C++14 and warn only with
> -pedantic.
> I think many people just write
>   static_assert(thing, "");
> .
> 
> I took the path of building an empty string in the parser in this case.
> I wasn't sure if setting message to NULL_TREE would cause sadness later on
> or not.
> 
> I also, perhaps in a fit of overzealousness made finish_static_assert not
> print the extra ": " and an empty message in this case.
> 
> I didn't modify _Static_assert for C.

I'm not aware of any C DR that is asking for _Static_assert (cst-expr), so
I suppose there's no need to change C at this point.

        Marek

Reply via email to