http://d.puremagic.com/issues/show_bug.cgi?id=3349

           Summary: typeid(shared(T)) generates wrong value
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hanaz...@gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanaz...@gmail.com> 2009-09-28 09:16:19 
PDT ---
Typeid of a shared type is incorrect.
Its .next seems referring to it circularly.

----

void main() {
    auto ti = typeid(shared(int));

    assert(cast(TypeInfo_Shared)ti);

    assert((cast(TypeInfo_Shared)ti).next == typeid(int));
        // object.Error: Stack Overflow
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to