Bug 3097 – Error at contract block + wierd error at struct template declaration

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-06-26T22:36:00Z
Last change time
2015-06-09T01:27:58Z
Assigned to
nobody
Creator
trtheanh2

Attachments

IDFilenameSummaryContent-TypeSize
405expression.zipTest case source code.application/octet-stream1150

Comments

Comment #0 by trtheanh2 — 2009-06-26T22:36:15Z
DMD v2.030 on WinXP 32bit. Intel Pentium M. dmd FLAGS contr.d -ofcontr.o dmd FLAGS expr.d -ofexpr.o dmd FLAGS hello.d -ofhello.o In debug mode: FLAGS = -c -w -g -debug => dmd -c -w -g -debug ... DMD shows error messages at the in{} contract block. Line 116 file expr.d. If i comment out the contract block. It compiles OK. In release mode: FLAGS = -c -w -O -inline -release => dmd -c -w -O -inline -release ... DMD shows error messages at the in{} contract block. If i comment out the contract block. It shows some weird error messages. If i remove '-release' (still comment out contract block), It compiles OK. 3 files attached are test case. The contr.d is the trigger for weird error message. If you omit it, the bug disappear.
Comment #1 by trtheanh2 — 2009-06-26T22:38:03Z
Created attachment 405 Test case source code.
Comment #2 by trtheanh2 — 2009-10-05T07:53:12Z
I've re-tested with dmd v2.033: the bug disappeared.