www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8499] New: ICE on undefined identifier

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8499

           Summary: ICE on undefined identifier
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: simen.kjaras gmail.com



PDT ---
This code:

import std.variant;

void main() {
    (Variant()).get!(typeof(() => i));
}

Gives this error:

foo.d(4): Error: undefined identifier i
Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c'

abnormal program termination

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 02 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8499




Reduced test case:

struct Variant
{
     property T get(T)()
    {
        struct X {}   // necessary
    }
}
void main() {
    (Variant()).get!(typeof(() => i));
}

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