[Issue 8358] New: TypeInfo_Const next implementation is wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 8 00:40:57 PDT 2012


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 at puremagic.com
        ReportedBy: code at benjamin-thaut.de


--- Comment #0 from Benjamin Thaut <code at benjamin-thaut.de> 2012-07-08 00:40:55 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: -------


More information about the Digitalmars-d-bugs mailing list