www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 42] New: enable-checking error found in std/regexp.d

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

           Summary: enable-checking error found in std/regexp.d
           Product: GDC
           Version: 0.17
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Keywords: ice-on-valid-code, patch
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: braddr puremagic.com
        ReportedBy: braddr puremagic.com


reduced test case:

module std.regexp;
class RegExp
{
    class Range { }
    void parseRange()
    {
        Range r = new Range();
    }
}

proposed patch from our irc discussion, does _not_ fix the problem:

--- d-glue.cc.orig   2006-03-11 21:37:48.000000000 -0600
+++ d-glue.cc        2006-03-12 13:11:42.000000000 -0600
   -2195,6 +2195,7   
            Dsymbol * d = cd->toParent();

            tree vthis_field = cd->vthis->toSymbol()->Stree;
+            t =
d_convert_basic(Type::tvoid->pointerTo()->pointerTo()->toCtype(), t);
            t = irs->component(
                               build1(INDIRECT_REF, TREE_TYPE(TREE_TYPE(t)),
t),
                               vthis_field);


-- 
Mar 12 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=42


braddr puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|patch                       |





I'm looking into this one now.  The patch below is not going to fix this bug,
though it might well fix some other as-of-yet unidentified bug.  The loop
surrounding it is never entered so the code is never executed.


-- 
Mar 21 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=42


dvdfrdmn users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




-- 
Apr 19 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=42


braddr puremagic.com changed:

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





fixed in gdc 0.18


-- 
May 30 2006