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

           Summary: ICE: 'global.errors' on line 4893 in file 'template.c'
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-01-09 
06:38:05 PST ---
import std.conv;

//~ alias const(char)* function() CFunc;  // fixed version
alias const char* function() CFunc;

void main()
{
    CFunc cFunc;
    auto name = to!string(cFunc());    
}

The fixed version compiles, the one below it produces an ICE:
Assertion failure: 'global.errors' on line 4893 in file 'template.c'

abnormal program termination

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

Reply via email to