Thread overview
[Issue 489] New: .classinfo not working with fqn
Nov 08, 2006
d-bugmail
Nov 15, 2006
d-bugmail
Nov 23, 2006
Thomas Kuehne
November 08, 2006
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


-- 

November 15, 2006
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.


-- 

November 23, 2006
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