Summary: Global lambda assign to const/immutable
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-06-11 14:02:59 PDT ---
immutable f = (int x) => x;
void main() {}

DMD 2.060alpha gives:

test.d(1): Error: non-constant nested delegate literal expression __lambda1

(According to nazriel on IRC #D, dmd 2.059 gives an internal error
backend/elfobj.c 455,  and LDC compiles it).

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

Reply via email to