Bug 23930 – assert(0) passed to function with noreturn parameter causes segfault

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-05-20T01:08:35Z
Last change time
2024-12-13T19:29:10Z
Keywords
ice-on-valid-code
Assigned to
No Owner
Creator
elpenguino+D
Moved to GitHub: dmd#20286 →

Comments

Comment #0 by elpenguino+D — 2023-05-20T01:08:35Z
``` void main() { bar(assert(0)); } void bar(noreturn) {} ``` With DMD 2.103.0 it also prints TYvoid.
Comment #1 by robert.schadek — 2024-12-13T19:29:10Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20286 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB