[cfe-dev] Assertion failure "EvalVal doesn't work on pointers"
Ted Kremenek
kremenek at apple.com
Tue Aug 28 10:03:15 PDT 2007
This is now fixed. Thanks for reporting this, and sorry for the delay
in fixing it!
On Aug 25, 2007, at 6:41 PM, Keith Bauer wrote:
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list