[Issue 3373] bad codeview debug info for long and ulong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 8 00:01:22 PDT 2009


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


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

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


--- Comment #1 from Rainer Schuetze <r.sagitario at 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: -------


More information about the Digitalmars-d-bugs mailing list