Bug 23366 – compiler crash on assert(0) with bottom value as message

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Other
Creation time
2022-09-24T11:25:12Z
Last change time
2023-10-14T04:32:02Z
Assigned to
No Owner
Creator
Ate Eskola

Comments

Comment #0 by Ajieskola — 2022-09-24T11:25:12Z
Compiled with a recent master DMD version, flags -preview=dip1000 ----------------------------- @safe void main(){assert(0, assert(0));} ----------------------------- Trying to compile the above program crashes the compiler. This program should compile, but crash at runtime.
Comment #1 by b2.temp — 2023-10-14T04:32:02Z
no more crash with DMD ~master, just like for your other s