[Issue 24017] [CTFE] Bypassing `nothrow` with `debug` doesn’t work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 27 10:48:33 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24017
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The issue has nothing to do with CTFE. Reduction:
void writeln(string) {}
void main() nothrow
{
debug writeln("Hello"); // Works
debug "Hello".writeln; // Error: function `test.writeln` is not nothrow
}
--
More information about the Digitalmars-d-bugs
mailing list