[LLVMbugs] [Bug 14729] New: Assertion `Result && "Could not evaluate expression"' failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 28 02:41:19 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14729
Bug #: 14729
Summary: Assertion `Result && "Could not evaluate expression"'
failed
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: antoine.balestrat at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hello ! LLVM/Clang as of r171179 could not compile the following testcase.
$ cat fail.c
void f(void)
{
(0 ? : 1 / 0) + 0U;
}
$ clong -w fail.c
clang: /home/merkil/clang/llvm/tools/clang/lib/AST/ExprConstant.cpp:6361:
llvm::APSInt clang::Expr::EvaluateKnownConstInt(const clang::ASTContext &)
const: Assertion `Result && "Could not evaluate expression"' failed.
0 clang 0x09aa79db
Stack dump:
0. Program arguments: /home/merkil/clang/build/Release+Asserts/bin/clang
-cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name fail.c -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4
-target-linker-version 2.22.90.20120727 -momit-leaf-frame-pointer -resource-dir
/home/merkil/clang/build/Release+Asserts/bin/../lib/clang/3.3
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/home/merkil/clang/build/Release+Asserts/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -w
-fdebug-compilation-dir /home/merkil -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -backend-option
-vectorize-loops -o /tmp/fail-KnnSbd.o -x c fail.c
1. fail.c:4:1: current parser token '}'
2. fail.c:2:1: parsing function body 'f'
3. fail.c:2:1: in compound statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171179)
Target: i386-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list