[Issue 24017] New: [CTFE] Bypassing `nothrow` with `debug` doesn’t work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 27 08:26:18 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24017

          Issue ID: 24017
           Summary: [CTFE] Bypassing `nothrow` with `debug` doesn’t work
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ogion.art at gmail.com

import std.stdio;
void main() nothrow {
    debug writeln("Hello"); // Works
    debug "Hello".writeln;  // Error: function
`std.stdio.writeln!string.writeln` is not `nothrow`
}

--


More information about the Digitalmars-d-bugs mailing list