Summary: 'used before set' error with no line number
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-09 18:03:52 PST ---
import std.algorithm: map;
import std.typecons: tuple;
int foo() {
    return 0;
void main() {
    auto bars = map!(n => tuple(foo(), n))([10]);
    auto spam = bars.front[1];

Compiling with:
dmd -O test.d

DMD 2.058head gives:

Error: variable __tup818 used before set

Note the lack of error line number.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to