www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8358] New: TypeInfo_Const next implementation is wrong

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

           Summary: TypeInfo_Const next implementation is wrong
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: code benjamin-thaut.de



PDT ---
In TypeInfo_Const

 property override TypeInfo next() nothrow pure { return base.next; }

This will cause type info const to return null or a wrong TypeInfo object
because it jumps over the base type. It should be:

 property override TypeInfo next() nothrow pure { return base; }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 08 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8358


Benjamin Thaut <code benjamin-thaut.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



PDT ---
next() is working as intended. But another method is needed to get the
unqualified Type Info Object.

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