Bug 1154 – Implicit template return value + mixin results in invalid type deduction

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
All
Creation time
2007-04-16T11:49:06Z
Last change time
2019-07-12T09:54:25Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Jari-Matti Mäkelä

Comments

Comment #0 by onlystupidspamhere — 2007-04-16T11:49:06Z
template foo() { mixin("alias int foo;"); } void main() { foo!() baa; } bug2.d(6): Error: foo!() is used as a type bug2.d(6): variable myprog.main.a voids have no value
Comment #1 by thomas-dloop — 2007-04-25T12:57:17Z
Comment #2 by k.hara.pg — 2011-06-18T01:13:33Z
Sample code pass compile using trunk dmd (d36b3b12fc4814e59f3a0d680b8700e787b1ceff). I guess this issue has been already resolved.
Comment #3 by kennytm — 2011-06-18T02:39:24Z
(In reply to comment #2) > Sample code pass compile using trunk dmd > (d36b3b12fc4814e59f3a0d680b8700e787b1ceff). > > I guess this issue has been already resolved. d36b3b is on the 2.x branch, but this bug is for 1.x.
Comment #4 by razvan.nitu1305 — 2019-07-12T09:54:25Z
The issue does not manifest in D2. Closing as resolved.