[Issue 23302] std.algorithm.comparison.predSwitch producing SwitchError with error message as the filename
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 22 20:24:39 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23302
Steven Schveighoffer <schveiguy at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at gmail.com
Component|phobos |druntime
Hardware|x86_64 |All
OS|Linux |All
--- Comment #1 from Steven Schveighoffer <schveiguy at gmail.com> ---
This can be fixed by changing `SwitchError` to take a msg, and then changing
the hook to forward that default message as well (no compiler code need be
changed, all druntime changes).
See hook entry point here:
https://github.com/dlang/dmd/blob/33e8f2ce32831d509fb9052227ca9f33e132a29b/druntime/src/core/internal/switch_.d#L189
--
More information about the Digitalmars-d-bugs
mailing list