[Issue 3305] Segfault(expression.c) with recursive struct template alias expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 25 06:52:21 PDT 2009


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


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

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


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-09-25 06:52:20 PDT ---
This is trivial. expression.c, line 1246. It's already an error, we just need
to prevent it from crashing.

Expression *Expression::deref()
{
    //printf("Expression::deref()\n");
-    if (type->ty == Treference)
+    if (type && type->ty == Treference)
    {    Expression *e;

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