Changeset 379

Show
Ignore:
Timestamp:
02/12/10 01:55:03 (7 months ago)
Author:
walter
Message:

bugzilla 3775 Segfault(cast.c): casting no-parameter template function using property syntax

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dmd-1.x/src/expression.c

    r370 r379  
    73487348        error("cannot cast from %s to %s", e1->type->toChars(), to->toChars()); 
    73497349        return new ErrorExp(); 
    73507350        } 
    73517351    } 
    73527352    } 
     7353 
     7354    if (!e1->type) 
     7355    {   error("cannot cast %s", e1->toChars()); 
     7356    return new ErrorExp(); 
     7357    } 
     7358 
    73537359    e = e1->castTo(sc, to); 
    73547360    return e; 
    73557361} 
    73567362 
    73577363int CastExp::checkSideEffect(int flag)