[cfe-dev] Assertion failure "EvalVal doesn't work on pointers"

Keith Bauer onesadcookie at gmail.com
Sat Aug 25 18:41:02 PDT 2007


int *h[3];

int **foo(int i)
{
    return &(h[i]);
}

imac:Desktop keith$ clang -fsyntax-only test6.c
Assertion failed: (!E->getType()->isPointerType() && "EvalVal doesn't
work on pointers"), function EvalVal, file SemaChecking.cpp, line 551.

(removing a level of indirection doesn't trigger the assertion --
changing h to an array of ints, and foo to return an int*).

-Keith



More information about the cfe-dev mailing list