On 16.05.21 19:24, Alain De Vos wrote:
On Sunday, 16 May 2021 at 16:58:15 UTC, H. S. Teoh wrote:
[...]
Though I believe if you compile with -dip25 -dip1000 the compiler should emit an error for the above code. If not, please file a bug against -dip1000.TI use ldc2. No dip flags here.
ldc2 understands `-dip1000`. It also understands the newer `-preview=dip1000`.
More importantly, the code needs to be @safe. @system code is not checked for this kind of error.