www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 489] New: .classinfo not working with fqn

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=489

           Summary: .classinfo not working with fqn
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: benoit tionex.de


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


-- 
Nov 08 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=489


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.


-- 
Nov 15 2006
prev sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com 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-----
Nov 23 2006