[Issue 22277] removing strongly pure function calls is an incorrect optimization
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 6 11:13:34 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22277
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
I agree that this is a problem, but if this is fixed, why do we even have
`pure` anymore? I think that the fix should be the other way around: asserts
should be forbidden in pure functions (except if the function is @noreturn).
--
More information about the Digitalmars-d-bugs
mailing list