[Issue 24115] New: No runtime crash on use of a noreturn template argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 27 07:59:27 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24115
Issue ID: 24115
Summary: No runtime crash on use of a noreturn template
argument
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
For the following code there's no runtime crash
```
int v(e)()
{
return e + 0;
}
int main()
{
return v!(noreturn)();
}
```
--
More information about the Digitalmars-d-bugs
mailing list