Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
View | Details | Raw Unified | Return to bug 176
Collapse All | Expand All

(-)a/gcc/d/dfrontend/mtype.c (+11 lines)
Lines 6617-6622 void TypeQualified::resolveHelper(Loc loc, Scope *sc, Link Here
6617
                    }
6617
                    }
6618
                    if (e->op == TOKtype)
6618
                    if (e->op == TOKtype)
6619
                        *pt = e->type;
6619
                        *pt = e->type;
6620
                    else if (e->op == TOKerror)
6621
                        *pt = Type::terror;
6620
                    else
6622
                    else
6621
                        *pe = e;
6623
                        *pe = e;
6622
                }
6624
                }
Lines 6812-6817 void TypeIdentifier::resolve(Loc loc, Scope *sc, Expression **pe, Type **pt, Dsy Link Here
6812
        }
6814
        }
6813
    }
6815
    }
6814
6816
6817
    if (ident == Id::ctfe)
6818
    {
6819
        error(loc, "variable __ctfe cannot be read at compile time");
6820
        *pe = NULL;
6821
        *ps = NULL;
6822
        *pt = Type::terror;
6823
        return;
6824
    }
6825
6815
    Dsymbol *s = sc->search(loc, ident, &scopesym);
6826
    Dsymbol *s = sc->search(loc, ident, &scopesym);
6816
    resolveHelper(loc, sc, s, scopesym, pe, pt, ps, intypeid);
6827
    resolveHelper(loc, sc, s, scopesym, pe, pt, ps, intypeid);
6817
    if (*pt)
6828
    if (*pt)

Return to bug 176