Thread overview
[Issue 484] New: Compiler segfault with template variadic used as a template alias.
Nov 06, 2006
d-bugmail
Nov 15, 2006
d-bugmail
Nov 23, 2006
Thomas Kuehne
November 06, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=484

           Summary: Compiler segfault with template variadic used as a
                    template alias.
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P5
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


I'm not sure what this should do, actually -- but it shouldn't crash.
--------
template g(alias B)
{
    int g = 2;
}

int f(A...)(A a)
{
    return g!(a);
}

int main()
{
    return f(4);
}


-- 

November 15, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=484


deewiant@gmail.com changed:

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




------- Comment #1 from deewiant@gmail.com  2006-11-15 02:57 -------
Fixed in DMD 0.174.


-- 

November 23, 2006
d-bugmail@puremagic.com schrieb am 2006-11-06:
> http://d.puremagic.com/issues/show_bug.cgi?id=484

> I'm not sure what this should do, actually -- but it shouldn't crash.
> --------
> template g(alias B)
> {
>     int g = 2;
> }
>
> int f(A...)(A a)
> {
>     return g!(a);
> }
>
> int main()
> {
>     return f(4);
> }

Added to DStress as http://dstress.kuehne.cn/run/t/tuple_02_A.d

Thomas