Bug in ^^

Johan Engelen j at j.nl
Tue Sep 17 17:51:59 UTC 2019


On Tuesday, 17 September 2019 at 17:41:23 UTC, Vladimir Panteleev 
wrote:
>
> I agree, a warning or error for overflows at compile-time would 
> be appropriate.

Do you have a suggestion for the syntax to write overflowing CTFE 
code without triggering the warning? What I mean is: how can the 
programmer tell the compiler that overflow is acceptable in a 
particular case.
I briefly looked for it, but couldn't find how to do that with 
GCC/clang (other than #pragma diagnostic push/pop).

-Johan





More information about the Digitalmars-d mailing list