Thread overview
[Issue 3373] New: bad codeview debug info for long and ulong
Oct 08, 2009
Rainer Schuetze
Oct 08, 2009
Rainer Schuetze
Feb 05, 2010
Walter Bright
Mar 09, 2010
Walter Bright
October 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3373

           Summary: bad codeview debug info for long and ulong
           Product: D
           Version: 2.033
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: r.sagitario@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2009-10-07 23:58:40 PDT ---
The codeview debug info emitted by dmd for long and ulong types are a bad delegate and dynamic-array of ints, respectively.

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


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, wrong-code


--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2009-10-08 00:01:22 PDT ---
This is caused a bad check in cv4_typeidx() that will never use the basic
types, because cv4_typidx(t->Tnext) never returns 0. Instead, t->Tnext should
be tested:

Index: cgcv.c ===================================================================
--- cgcv.c    (revision 201)
+++ cgcv.c    (working copy)
@@ -1677,14 +1677,14 @@
     switch (tym)
     {
     case TYllong:
-        if (next)
+        if (t->Tnext)
         goto Ldelegate;
         assert(dt);
         typidx = dt;
         break;

     case TYullong:
-        if (next)
+        if (t->Tnext)
         goto Ldarray;
         assert(dt);
         typidx = dt;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3373


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-02-05 02:58:12 PST ---
changelog 369

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3373


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2010-03-08 22:19:56 PST ---
Fixed dmd 1.057 and 2.041

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