[Issue 22389] New: noreturn functions are allowed to return normally

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 15 12:46:04 UTC 2021


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

          Issue ID: 22389
           Summary: noreturn functions are allowed to return normally
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

The following code is accepted despite foo violating the contract of noreturn:

noreturn foo() {}

--


More information about the Digitalmars-d-bugs mailing list