Thread overview
[Issue 465] New: errors when trying to use static templated methods
Oct 27, 2006
d-bugmail
Nov 23, 2006
Thomas Kuehne
Nov 25, 2006
d-bugmail
October 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=465

           Summary: errors when trying to use static templated methods
           Product: D
           Version: 0.172
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


struct Foo {
        static void func(T)(T a) {
        }
}

void main() {
        Foo.init.func(1);               // ok
        Foo.init.func!(int)(1); // template func!(int) is not a member of Foo
        Foo.func(1);                    // type Foo is not an expression
        Foo.func!(int)(1);              // template func!(int) is not a member
of Foo
}


-- 

November 23, 2006
d-bugmail@puremagic.com schrieb am 2006-10-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=465

> struct Foo {
>         static void func(T)(T a) {
>         }
> }
>
> void main() {
>         Foo.init.func(1);               // ok
>         Foo.init.func!(int)(1); // template func!(int) is not a member of Foo
>         Foo.func(1);                    // type Foo is not an expression
>         Foo.func!(int)(1);              // template func!(int) is not a member
> of Foo
> }

Added to DStress as http://dstress.kuehne.cn/run/t/template_45_A.d http://dstress.kuehne.cn/run/t/template_45_B.d http://dstress.kuehne.cn/run/t/template_45_C.d http://dstress.kuehne.cn/run/t/template_45_D.d http://dstress.kuehne.cn/run/t/template_45_E.d http://dstress.kuehne.cn/run/t/template_45_F.d

Thomas


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


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2006-11-25 03:55 -------
Fixed DMD 0.175


--