Bug 465 – errors when trying to use static templated methods

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-27T17:56:00Z
Last change time
2014-02-15T13:18:54Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic

Comments

Comment #0 by h3r3tic — 2006-10-27T17:56:09Z
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 }
Comment #1 by thomas-dloop — 2006-11-23T05:02:01Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----
Comment #2 by bugzilla — 2006-11-25T03:55:06Z
Fixed DMD 0.175