Bug 1224 – Compilation does not stop on asserts during CTFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-05-09T09:56:00Z
Last change time
2014-02-16T15:21:56Z
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2007-05-09T09:56:30Z
int foo2() { int a; assert(a); a = 1; assert(!a); return a; } void main() { const a = foo2(); } bugs.d(21): Error: assert(a) failed bugs.d(23): Error: assert(!a) failed
Comment #1 by bugzilla — 2007-07-01T14:02:24Z
Fixed DMD 1.018 and DMD 2.002