Bug 6984 – CTFE generates a torrent of spurious errors, if there was a previous error

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-11-21T14:15:00Z
Last change time
2015-06-09T05:11:38Z
Keywords
diagnostic
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-11-21T14:15:26Z
If any errors have occured during compilation, the CTFE engine won't even try. It just reports "function XXX cannot be interpreted at compile time" for every invocation of CTFE. Eg, in the test suite interpret3.d, if you add an 'assert(0)' to the first test, more than a hundred spurious error messages are generated.
Comment #1 by bugzilla — 2011-12-21T15:24:29Z