D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4846 - A problem with array of std.typecons.Tuple
Summary: A problem with array of std.typecons.Tuple
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 12:53 UTC by bearophile_hugs
Modified: 2010-10-29 17:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-09-09 12:53:54 UTC
import std.typecons: Tuple;
alias Tuple!(int) Foo;
auto data = [Foo(1)];
void main() {}


DMD 2.048 shows:
Error: duplicate union initialization for _0

Additionally, there is no line number for the error.
Comment 1 bearophile_hugs 2010-10-29 17:08:23 UTC
Fixed in dmd 2.050