[Issue 8351] New: Lambdas in 'static foreach' give errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 6 01:05:12 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8351

           Summary: Lambdas in 'static foreach' give errors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: wfunction at hotmail.com


--- Comment #0 from wfunction at hotmail.com 2012-07-06 01:05:05 PDT ---
module Test;
import std.typetuple;

void main()
{
    foreach (i; TypeTuple!(1, 2, 3))
        auto a = () => i;
}



Test.obj(Test)  Offset 0029BH Record Type 00C3 
 Error 1: Previous Definition Different : _D4Test4mainFZv9__lambda1FNaNbNfZi
Test.obj(Test)  Offset 002B0H Record Type 00C3 
 Error 1: Previous Definition Different : _D4Test4mainFZv9__lambda1FNaNbNfZi

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list