[Issue 22986] New: Phobos cannot be compiled with dip1008
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 4 11:28:50 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22986
Issue ID: 22986
Summary: Phobos cannot be compiled with dip1008
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: razvan.nitu1305 at gmail.com
Phobos exceptions sometimes escape their catch block, however, dip1008 does not
allow that. One example:
https://github.com/dlang/phobos/blob/master/std/parallelism.d#L3770 . However,
there are others, just try to compile phobos with dip1008.
Although the DIP says that the exception can be cloned in this case, the
problem is that the user then needs to manually manage the exception (free it).
I don't think that this is a phobos problem, rather that dip1008 is too
restrictive.
--
More information about the Digitalmars-d-bugs
mailing list