Summary: [ICE] function literals class member
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-07-16 04:24:49 PDT ---
D2 code:

import std.traits: ReturnType;
struct Foo {
    ReturnType!({}) bar;
void main() {}

dmd 2.047 prints:
test.d(3): Error: delegate test.Foo.__dgliteral1 function literals cannot be
class members
ty = 37
Assertion failure: '0' on line 141 in file 'mtype.c'

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

Reply via email to