Bug 489 – .classinfo not working with fqn

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2006-11-08T17:16:00Z
Last change time
2014-02-15T13:19:01Z
Assigned to
bugzilla
Creator
benoit

Comments

Comment #0 by benoit — 2006-11-08T17:16:59Z
module t; class C2{ static int value; } void main(){ auto v1 = t.C2.value; auto v2 = C2.classinfo; auto v3 = t.C2.classinfo; // line 10 } t.d(10): undefined identifier class C2.classinfo t.d(10): variable t.main.v3 voids have no value t.d(10): undefined identifier class C2.classinfo t.d(10): voids have no value t.d(10): cannot implicitly convert expression (class C2.classinfo) of type void to int
Comment #1 by matti.niemenmaa+dbugzilla — 2006-11-15T02:57:09Z
Fixed in DMD 0.174.
Comment #2 by thomas-dloop — 2006-11-23T05:00:46Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-11-08: > http://d.puremagic.com/issues/show_bug.cgi?id=489 > module t; > class C2{ > static int value; > } > void main(){ > auto v1 = t.C2.value; > auto v2 = C2.classinfo; > auto v3 = t.C2.classinfo; // line 10 > } > t.d(10): undefined identifier class C2.classinfo > t.d(10): variable t.main.v3 voids have no value > t.d(10): undefined identifier class C2.classinfo > t.d(10): voids have no value > t.d(10): cannot implicitly convert expression (class C2.classinfo) of type void > to int Added to DStress as http://dstress.kuehne.cn/run/c/classinfo_01_A.d http://dstress.kuehne.cn/run/c/classinfo_01_B.d http://dstress.kuehne.cn/run/c/classinfo_01_C.d http://dstress.kuehne.cn/run/c/classinfo_01_D.d http://dstress.kuehne.cn/run/c/classinfo_01_E.d http://dstress.kuehne.cn/run/c/classinfo_01_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFZYfALK5blCcjpWoRAvu+AJ9g1Txoc29OfGSoQKPt74D7yDyNXACfcQVw hHI84T/kHDjZRob/32m2xbo= =62lR -----END PGP SIGNATURE-----