www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11675] New: [ICE] (expression.c line 9217) With text() of a Typedef

https://d.puremagic.com/issues/show_bug.cgi?id=11675

           Summary: [ICE] (expression.c line 9217) With text() of a
                    Typedef
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-12-03 18:59:51 PST ---
import std.typecons: Typedef;
import std.string: text;
alias Foo = Typedef!int;
void main() {
    text(Foo(1));
}


DMD 2.065alpha gives:

Assertion failure: 't1->ty == Tfunction' on line 9217 in file 'expression.c'

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