Bug 18360 – `static assert(false)` ignored / gagged

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-02-03T09:27:29Z
Last change time
2023-05-11T10:07:07Z
Assigned to
No Owner
Creator
Timothee Cour

Comments

Comment #0 by timothee.cour2 — 2018-02-03T09:27:29Z
after `git clone https://github.com/dlang/dmd` git rev-parse HEAD e17992f4b7707b6ce6ba26921cb7420732fe5afd (but shouldn't matter) dmd -o- -I/path/dlang/dmd/src fun.d fun.d: ``` static assert(false); import dmd.dsymbol; ``` /path/dlang/dmd/src/dmd/dsymbol.d(181): Error: undefined identifier Symbol, did you mean class Dsymbol? related: https://issues.dlang.org/show_bug.cgi?id=11633
Comment #1 by razvan.nitu1305 — 2023-05-11T10:07:07Z
I cannot reproduce this: // test.d static assert(false); import a; // a.d class Dsymbol; Symbol a; Result: a.d(3): Error: undefined identifier `Symbol`, did you mean class `Dsymbol`? test.d(1): Error: static assert: `false` is false