[Issue 4781] Segfault(mtype.c) with forward referenced typeof and .init

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 1 02:30:07 PDT 2010


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


Don <clugdbug at yahoo.com.au> changed:

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


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-09-01 02:29:51 PDT ---
A quick patch to turn it into a rejects-valid:
mtype.c, Type::dotExp, line 1795


+            Expression *eold = e;
            e = defaultInitLiteral(e->loc);
+            if (!e)
+            {
+                eold->error("forward referenced .init (Bugzilla 4781)");
+                return new ErrorExp();
+            }
            goto Lreturn;
        }
    }
    if (ident == Id::typeinfo)
    {

-- 
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