Bug 2271 – foreach over tuple regression

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-08-06T18:57:00Z
Last change time
2014-03-01T00:37:02Z
Keywords
wrong-code
Assigned to
nobody
Creator
tomas

Comments

Comment #0 by tomas — 2008-08-06T18:57:35Z
there is a regression for foreach on a tuple: struct test { int foo; float bar; } void main() { test t; pragma(msg, typeof(t.tupleof).stringof); foreach (entry; t.tupleof) { pragma(msg, typeof(entry).stringof); } } with DMD 1.024 the output is correct: (int, float) int float However, with DMD 1.033 it's not: (int, float) int int I don't have any versions between if someone does, please check for earlier versions :)
Comment #1 by jarrett.billingsley — 2009-07-06T14:28:44Z
This works fine in 1.039. Can anyone else confirm?
Comment #2 by clugdbug — 2009-07-07T07:51:16Z
Confirmed fixed on Windows also.