Bug 6964 – Error message with __error: static assert(undefined+1)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-11-17T02:10:00Z
Last change time
2015-06-09T05:11:35Z
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-11-17T02:10:52Z
Applies to most arithmetic operations. static assert(-undefined); bug.d(4): Error: undefined identifier undefined bug.d(4): Error: static assert (-(__error)) is false It's because typeCombine overwrites its subexpressions with ErrorExp.
Comment #1 by bugzilla — 2011-12-14T16:57:11Z