Thread overview
[Bug 153] New: Assertion failure :: template.c:2111
May 23, 2006
d-bugmail
May 24, 2006
Thomas Kuehne
May 25, 2006
d-bugmail
May 23, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=153

           Summary: Assertion failure :: template.c:2111
           Product: D
           Version: 0.157
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


template bar(T) {
    void foo() {}
}

alias bar!(long).foo foo;
alias bar!(char).foo foo;


void main() {
    foo!(long);
}

----

Yes, this code is invalid ;)

Thanks


-- 

May 24, 2006
d-bugmail@puremagic.com schrieb am 2006-05-23:
> template bar(T) {
>     void foo() {}
> }
>
> alias bar!(long).foo foo;
> alias bar!(char).foo foo;
>
>
> void main() {
>     foo!(long);
> }
>
> ----
>
> Yes, this code is invalid ;)

Added to DStress as http://dstress.kuehne.cn/nocompile/a/alias_36_A.d http://dstress.kuehne.cn/nocompile/a/alias_36_B.d http://dstress.kuehne.cn/nocompile/a/alias_36_C.d http://dstress.kuehne.cn/nocompile/a/alias_36_D.d

Thomas


May 25, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=153


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2006-05-25 04:24 -------
Fixed 0.158


--