← Back to index
|
Original Bugzilla link
Bug 1259 – Inline build triggers an illegal error msg "Error: S() is not an lvalue"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-06-06T08:07:00Z
Last change time
2014-02-16T15:25:38Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
onlystupidspamhere
Comments
Comment #0
by onlystupidspamhere — 2007-06-06T08:07:32Z
Code: struct S(T...) { S opMul_r(real r) { return S(); } S!(1) opDiv(R)(R r) { return S!(1)(); } } void main() { S!(1) a; S!(0) b; auto c = 1 * a / b; } --- dmd bug.d -> compiles fine dmd -inline bug.d -> bug.d(2): Error: S() is not an lvalue
Comment #1
by onlystupidspamhere — 2007-06-26T14:13:00Z
Fixed in 1.017
Comment #2
by thomas-dloop — 2007-07-23T15:08:45Z
Added to DStress as
http://dstress.kuehne.cn/run/t/tuple_25_A.d
http://dstress.kuehne.cn/run/t/tuple_25_B.d
http://dstress.kuehne.cn/run/t/tuple_25_C.d