Changeset 378

Show
Ignore:
Timestamp:
02/12/10 01:54:07 (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
  • trunk/src/expression.c

    r375 r378  
    77567756    else if (!to) 
    77577757    {   error("cannot cast tuple"); 
    77587758    to = Type::terror; 
    77597759    } 
    77607760 
     7761    if (!e1->type) 
     7762    {   error("cannot cast %s", e1->toChars()); 
     7763    return new ErrorExp(); 
     7764    } 
     7765 
    77617766#if 1 
    77627767    if (sc->func && sc->func->isSafe() && !sc->intypeof) 
    77637768#else 
    77647769    if (global.params.safe && !sc->module->safe && !sc->intypeof) 
    77657770#endif