[Issue 23175] -preview=in silently adds possible stack memory escape
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 16 06:46:08 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23175
Richard Cattermole <alphaglosined at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alphaglosined at gmail.com
--- Comment #10 from Richard Cattermole <alphaglosined at gmail.com> ---
(In reply to Mathias LANG from comment #9)
> > I do not think we need to change the semantics of preview=in, or to disable optimizations based on it. What we need is a warning to tell the user that what he wrote before, while valid with the previous compiler, has memory corruption implications now that the semantics have changed.
>
> You should have led with this. That's what `-transition` is for. It lists
> all instances of `in` usage so you can inspect them.
```
-transition=<name>
help with language change identified by 'name'
```
That description could do with some improvement.
--
More information about the Digitalmars-d-bugs
mailing list