Comment #8 by andrej.mitrovich — 2013-09-17T04:17:37Z
Labeled it as a DMD bug, and without the need for -unittest.
Reduced test-case:
-----
import std.string;
import std.typecons;
static assert(!__traits(compiles, [ tuple("foo", "bar", "baz") ].assocArray()));
enum E : string
{
a = "a",
b = "b"
}
void main()
{
auto x = [E.a, E.b].join(" ");
}
-----
Comment #9 by andrej.mitrovich — 2013-09-17T04:24:17Z
Update:
Not a git-head regression, 2.063.2 also has the same error with the reduced test-case (http://d.puremagic.com/issues/show_bug.cgi?id=11053#c8).
With 2.062 the '.join' call fails to instantiate, so I can't reproduce the same error.
Comment #10 by razvan.nitu1305 — 2018-01-08T13:55:01Z
Should we close this?
Comment #11 by simen.kjaras — 2018-01-08T14:56:01Z
The original error is gone, so yes. The code doesn't compile now either, but it's arguable whether that's a bug, and it should be treated as a separate issue if so.