[Issue 1110] New: std.format.doFormat + struct without toString() == crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 8 07:42:01 PDT 2007


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

           Summary: std.format.doFormat + struct without toString() == crash
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: fvbommel at wxs.nl


When formatting a struct instance, std.format.doFormat doesn't check whether
TypeInfo_Struct.xtoString is null before calling it. IMHO it should check for
this and throw an exception if it's null.


-- 



More information about the Digitalmars-d-bugs mailing list