[cfe-dev] assertion triggered: "Illegal argument to getIntegerConstantExpr"
Chris Lattner
clattner at apple.com
Wed Oct 15 08:15:25 PDT 2008
On Oct 15, 2008, at 5:26 AM, Roman Divacky wrote:
> hi
>
> uloziste /tmp$ cat cat.c
> #include <sys/un.h>
>
> #include <stddef.h>
>
> void
> main()
> {
> int len = offsetof(struct sockaddr_un, sun_path[len+1]);
> }
> uloziste /tmp$ ccc cat.c
> Assertion failed: (success && "Illegal argument to
> getIntegerConstantExpr"), function getIntegerConstantExprValue,
> file /usr/ports/devel/llvm-devel/work/llvm-2.4.snap20081014/tools/
> clang/lib/AST/../../include/clang/AST/Expr.h,
> line 105.
> uloziste /tmp$
>
> with llvm/clang-2.4 from 20081014 date. This is a stripped down test-
> case of a larger
> program so dont wonder why it looks like it does :)
Hi Roman,
I can't debug this without the contents of sys/un.h. Can you please
generate a .i file with "clang -E cat.c -o cat.i" and attach that?
Thanks,
-Chris
More information about the cfe-dev
mailing list