Changeset 379

Show
Ignore:
Timestamp:
02/12/10 01:55:03 (2 years 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  
    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;