digitalmars.D.bugs - [Issue 465] New: errors when trying to use static templated methods
- d-bugmail puremagic.com Oct 27 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Nov 23 2006
- d-bugmail puremagic.com Nov 25 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 } --
Oct 27 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- iD8DBQFFZXxcLK5blCcjpWoRAkVXAJ9sY26kTHxnXa2p+alxYKiFmZ2BNgCeKYo2 p9/ox/ewKYTz1NfAbZnkrVQ= =D1i4 -----END PGP SIGNATURE-----
Nov 23 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 --
Nov 25 2006









Thomas Kuehne <thomas-dloop kuehne.cn> 