Bug 22746 – Functions that throws marked as nothrow produces bad error
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-07T23:50:57Z
Last change time
2022-02-08T02:29:20Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0 by contact — 2022-02-07T23:50:57Z
Currently:
```
Error: `nothrow` function `foo` may throw
```
But should produce the following:
```
Error: function `foo` may throw but is marked as `nothrow`
```
Comment #1 by dlang-bot — 2022-02-07T23:52:22Z
@ljmf00 created dlang/dmd pull request #13621 "Fix issue 22746: Functions that throws marked as nothrow produces bad error" fixing this issue:
- Fix issue 22746: Functions that throws marked as nothrow produces bad error
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13621
Comment #2 by dlang-bot — 2022-02-08T02:29:20Z
dlang/dmd pull request #13621 "Fix issue 22746: Functions that throws marked as nothrow produces bad error" was merged into master:
- c154b84f196d42c6d62feac032fdbef99c22e152 by Luís Ferreira:
Fix issue 22746: Functions that throws marked as nothrow produces bad error
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13621