Thread overview
[Issue 24017] [UFCS] Bypassing `nothrow` with `debug` doesn’t work
[Issue 24017] [CTFE] Bypassing `nothrow` with `debug` doesn’t work
Jun 27, 2023
RazvanN
Jun 27, 2023
Georgy Markov
Jun 27, 2023
Dlang Bot
Jun 27, 2023
Dennis
Jun 27, 2023
Dlang Bot
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24017

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@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
}

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24017

Georgy Markov <ogion.art@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[CTFE] Bypassing `nothrow`  |[UFCS] Bypassing `nothrow`
                   |with `debug` doesn’t work   |with `debug` doesn’t work

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24017

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #15355 "Fix Issue 24017 - Bypassing with  doesn’t work" fixing this issue:

- Fix Issue 24017 - Bypassing  with  doesn’t work

https://github.com/dlang/dmd/pull/15355

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24017

Dennis <dkorpel@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel@live.nl

--- Comment #3 from Dennis <dkorpel@live.nl> ---
*** Issue 23016 has been marked as a duplicate of this issue. ***

--
June 27, 2023
https://issues.dlang.org/show_bug.cgi?id=24017

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15355 "Fix Issue 24017 - Bypassing nothrow  with debug doesn’t work" was merged into master:

- 0d2bea252760c0a020d44926cee356db7607a1b8 by RazvanN7:
  Fix Issue 24017 - Bypassing  with  doesn’t work

https://github.com/dlang/dmd/pull/15355

--