[LLVMbugs] [Bug 15491] New: Assertion `Result && "Could not evaluate expression"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 11 16:14:01 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15491

            Bug ID: 15491
           Summary: Assertion `Result && "Could not evaluate expression"'
                    failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lars.kuehne.de at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10168
  --> http://llvm.org/bugs/attachment.cgi?id=10168&action=edit
preprocessed source and runscript

clang-3.3: /home/lars/Downloads/llvm/tools/clang/lib/AST/ExprConstant.cpp:6401:
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-3.3       0x00000000010d7872 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang-3.3       0x00000000010d74c9
2  libpthread.so.0 0x00002b674e454ff0
3  libc.so.6       0x00002b674ee331b5 gsignal + 53
4  libc.so.6       0x00002b674ee35fc0 abort + 384
5  libc.so.6       0x00002b674ee2c301 __assert_fail + 241
6  clang-3.3       0x0000000001ccac99
7  clang-3.3       0x0000000001c28e9a
8  clang-3.3       0x0000000001c2a4ca
9  clang-3.3       0x0000000001c2b84d
10 clang-3.3       0x0000000001c2bd48
clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind,
long, char const*, unsigned int, char const*, unsigned int,
std::pair<clang::DiagnosticsEngine::ArgumentKind, long> const*, unsigned int,
llvm::SmallVectorImpl<char>&, void*, llvm::ArrayRef<long>) + 328
11 clang-3.3       0x00000000010dcacb clang::Diagnostic::FormatDiagnostic(char
const*, char const*, llvm::SmallVectorImpl<char>&) const + 2843
12 clang-3.3       0x00000000012ef3a7
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 87
13 clang-3.3       0x00000000010e3614
clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&,
clang::DiagnosticIDs::Level) const + 52
14 clang-3.3       0x00000000010e3895
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 341
15 clang-3.3       0x00000000010dbd44
clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 36
16 clang-3.3       0x000000000155d42c
clang::Sema::EmitCurrentDiagnostic(unsigned int) + 844
17 clang-3.3       0x0000000001564e4f
18 clang-3.3       0x00000000017362a9
19 clang-3.3       0x0000000001744b52
clang::OverloadCandidateSet::NoteCandidates(clang::Sema&,
clang::OverloadCandidateDisplayKind, llvm::ArrayRef<clang::Expr*>,
llvm::StringRef, clang::SourceLocation) + 1650
20 clang-3.3       0x0000000001574f39
21 clang-3.3       0x00000000015752bb
22 clang-3.3       0x000000000157969d
clang::Sema::BuildCXXNamedCast(clang::SourceLocation, clang::tok::TokenKind,
clang::TypeSourceInfo*, clang::Expr*, clang::SourceRange, clang::SourceRange) +
2813
23 clang-3.3       0x00000000017f4183
24 clang-3.3       0x00000000017df4ea
25 clang-3.3       0x00000000017edfe8
26 clang-3.3       0x00000000017edcb8
27 clang-3.3       0x00000000017f312e
28 clang-3.3       0x00000000017f3239
29 clang-3.3       0x00000000017df44a
30 clang-3.3       0x00000000017f9aee
31 clang-3.3       0x00000000017fb12f
32 clang-3.3       0x00000000017f9a3c
33 clang-3.3       0x00000000017fbd8f clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 79
34 clang-3.3       0x000000000180fd3d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2269
35 clang-3.3       0x000000000180e5c4
clang::Sema::PerformPendingInstantiations(bool) + 372
36 clang-3.3       0x000000000180f932
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1234
37 clang-3.3       0x000000000180e5c4
clang::Sema::PerformPendingInstantiations(bool) + 372
38 clang-3.3       0x000000000155e50b clang::Sema::ActOnEndOfTranslationUnit()
+ 315
39 clang-3.3       0x000000000138e4b2
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 306
40 clang-3.3       0x000000000138913a clang::ParseAST(clang::Sema&, bool, bool)
+ 266
41 clang-3.3       0x00000000010f7b2e clang::CodeGenAction::ExecuteAction() +
78
42 clang-3.3       0x00000000012cbbc9 clang::FrontendAction::Execute() + 265
43 clang-3.3       0x00000000012af905
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
44 clang-3.3       0x00000000010da5e2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1730
45 clang-3.3       0x00000000007235f8 cc1_main(char const**, char const**, char
const*, void*) + 888
46 clang-3.3       0x0000000000722030 main + 4976
47 libc.so.6       0x00002b674ee1fc8d __libc_start_main + 253
48 clang-3.3       0x000000000071dff1
Stack dump:
0.      Program arguments: /usr/local/stow/llvm-svn/bin/clang-3.3 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
main.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -g -coverage-file
/home/lars/Desktop/flow_complex/build/CMakeFiles/fc.dir/main.cpp.o
-resource-dir /usr/local/stow/llvm-svn/bin/../lib/clang/3.3 -I
/home/lars/Desktop/flow_complex/src/include -I /usr/local/include/eigen3 -I
/home/lars/myLocal/include -I /usr/local/include -internal-isystem
/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1
-internal-isystem
/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/x86_64-unknown-linux-gnu
-internal-isystem
/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/stow/llvm-svn/bin/../lib/clang/3.3/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O0 -Wall -Wextra -Wpointer-arith
-Wno-sign-compare -Wno-long-long -Wno-enum-compare -pedantic -std=c++11
-fdeprecated-macro -fdebug-compilation-dir
/home/lars/Desktop/flow_complex/build -ferror-limit 19 -fmessage-length 239
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o CMakeFiles/fc.dir/main.cpp.o -x c++
/home/lars/Desktop/flow_complex/src/main.cpp 
1.      <eof> parser at end of file
2.      /home/lars/Desktop/flow_complex/src/include/tasks.hpp:41:16:
instantiating function definition 'execute'
3.     
/home/lars/Desktop/flow_complex/src/include/critical_candidate.hpp:397:10:
instantiating function definition 'get_neg_affine_indices'
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 175992)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130311/c4aa05da/attachment.html>


More information about the llvm-bugs mailing list