Thread overview
[Issue 3349] New: typeid(shared(T)) generates wrong value
Sep 28, 2009
Kasumi Hanazuki
Oct 29, 2009
Leandro Lucarella
Nov 06, 2009
Walter Bright
September 28, 2009
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: nobody@puremagic.com
        ReportedBy: k.hanazuki@gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki@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: -------
October 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3349


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax@gmail.com


--- Comment #1 from Leandro Lucarella <llucax@gmail.com> 2009-10-29 06:45:51 PDT ---
Related svn revision: 224 http://www.dsource.org/projects/dmd/changeset/224

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 06, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3349


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-11-06 11:34:05 PST ---
Fixed dmd 2.036

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