<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Assertion "Could not evaluate expression" failed"
href="http://llvm.org/bugs/show_bug.cgi?id=16663">16663</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion "Could not evaluate expression" failed
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pipping@exherbo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10902" name="attach_10902" title="invalid c++ code">attachment 10902</a> <a href="attachment.cgi?id=10902&action=edit" title="invalid c++ code">[details]</a></span>
invalid c++ code
% clang -x c++ -std=c++0x -c -w one-body-sample-83GwrP.ii
clang: ExprConstant.cpp:7139: llvm::APSInt
clang::Expr::EvaluateKnownConstInt(const clang::ASTContext&,
llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >*) const: Assertion `Result && "Could not evaluate
expression"' failed.
0 clang 0x0000000001eebd72
1 clang 0x0000000001eeba91
2 libpthread.so.0 0x00007f3e111c8030
3 libc.so.6 0x00007f3e102b6475 gsignal + 53
4 libc.so.6 0x00007f3e102b96f0 abort + 384
5 libc.so.6 0x00007f3e102af621 __assert_fail + 241
6 clang 0x00000000010702eb
7 clang 0x0000000000fc3de8
8 clang 0x0000000000fc6349
9 clang 0x0000000000fc6689
Stack dump:
0. Program arguments: /home/cocktail/pipping/pkg/bin/clang -cc1 -triple
x86_64-debian-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
one-body-sample-83GwrP.ii -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.22 -coverage-file
/home/cocktail/pipping/local/tmp2/one-body-sample-83GwrP.o -resource-dir
/home/cocktail/pipping/pkg/bin/../lib/clang/3.3 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/home/cocktail/pipping/pkg/bin/../lib/clang/3.3/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -w
-std=c++0x -fdeprecated-macro -fdebug-compilation-dir
/home/cocktail/pipping/local/tmp2 -ferror-limit 19 -fmessage-length 104
-mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o one-body-sample-83GwrP.o -x c++
one-body-sample-83GwrP.ii
1. one-body-sample-83GwrP.ii:37:17: current parser token ')'
2. one-body-sample-83GwrP.ii:32:12: parsing function body 'main'
3. one-body-sample-83GwrP.ii:32:12: 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 (tags/RELEASE_33/final)
Target: x86_64-debian-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/one-body-sample-83GwrP-Jz6Tq9.cpp
clang: note: diagnostic msg: /tmp/one-body-sample-83GwrP-Jz6Tq9.sh
clang: note: diagnostic msg:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>