May 20, 2023 [Issue 23930] New: assert(0) passed to function with noreturn parameter causes segfault | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23930 Issue ID: 23930 Summary: assert(0) passed to function with noreturn parameter causes segfault Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: elpenguino+D@gmail.com ``` void main() { bar(assert(0)); } void bar(noreturn) {} ``` With DMD 2.103.0 it also prints TYvoid. -- |
Copyright © 1999-2021 by the D Language Foundation