[LLVMbugs] [Bug 15538] New: problem in clang for test-suite SingleSource/Regression/C++/EH/function_try_block.cpp for mips

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 18 12:45:54 PDT 2013


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

            Bug ID: 15538
           Summary: problem in clang for test-suite
                    SingleSource/Regression/C++/EH/function_try_block.cpp
                    for mips
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10196
  --> http://llvm.org/bugs/attachment.cgi?id=10196&action=edit
shell script

rkotler at ubuntu-rkotler:~/testmips16$ /local/llvmpb6/install/bin/clang++ -target
mipsel-linux-gnu eh.cpp -S  -emit-llvm -o mips16_attr.ll
clang: /home/rkotler/workspace/llvmpb6/include/llvm/Support/Casting.h:231:
typename llvm::enable_if<llvm::is_same<Y, typename
llvm::simplify_type<From>::SimpleType>, typename llvm::cast_retty<X,
Y*>::ret_type>::type llvm::cast(Y*) [with X = llvm::Function, Y =
llvm::GlobalValue]: Assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"' failed.
0  clang           0x0000000002f4a23d llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  clang           0x0000000002f4a4ba
2  clang           0x0000000002f49f12
3  libpthread.so.0 0x00007f576ab848f0
4  libc.so.6       0x00007f5769c6ba75 gsignal + 53
5  libc.so.6       0x00007f5769c6f5c0 abort + 384
6  libc.so.6       0x00007f5769c64941 __assert_fail + 241
7  clang           0x0000000000f2b8f8 llvm::cast_retty<llvm::VectorType,
llvm::Type*>::ret_type llvm::dyn_cast_or_null<llvm::VectorType,
llvm::Type>(llvm::Type*) + 0
8  clang           0x0000000000f26b81
9  clang           0x0000000000ec2866
clang::CodeGen::CodeGenModule::SetCommonAttributes(clang::Decl const*,
llvm::GlobalValue*) + 252
10 clang           0x0000000000f40934
clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl,
clang::GlobalDecl) + 878
11 clang           0x0000000000f40ad9
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 231
12 clang           0x0000000000ec4da1
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 245
13 clang           0x0000000000ec4773
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 709
14 clang           0x0000000000f4099e
clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl
const*) + 86
15 clang           0x0000000000ecb56f
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 559
16 clang           0x0000000000e9e40d
17 clang           0x0000000000e9c159
18 clang           0x0000000001080875 clang::ParseAST(clang::Sema&, bool, bool)
+ 546
19 clang           0x0000000000c5de58 clang::ASTFrontendAction::ExecuteAction()
+ 298
20 clang           0x0000000000e9b339 clang::CodeGenAction::ExecuteAction() +
1425
21 clang           0x0000000000c5d9d8 clang::FrontendAction::Execute() + 200
22 clang           0x0000000000c328f6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 728
23 clang           0x0000000000c013b8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
24 clang           0x0000000000bf11e6 cc1_main(char const**, char const**, char
const*, void*) + 754
25 clang           0x0000000000bfb8e6 main + 499
26 libc.so.6       0x00007f5769c56c4d __libc_start_main + 253
27 clang           0x0000000000bf08c9
Stack dump:
0.    Program arguments: /local/llvmpb6/install/bin/clang -cc1 -triple
mipsel--linux-gnu -emit-llvm -disable-free -main-file-name eh.cpp
-mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-target-cpu mips32 -target-abi o32 -mfloat-abi hard -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file
/home/rkotler/testmips16/mips16_attr.ll -resource-dir
/local/llvmpb6/install/bin/../lib/clang/3.3 -internal-isystem
/usr/local/include -internal-isystem
/local/llvmpb6/install/bin/../lib/clang/3.3/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -fdeprecated-macro
-fno-dwarf-directory-asm -fdebug-compilation-dir /home/rkotler/testmips16
-ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o mips16_attr.ll -x c++ eh.cpp 
1.    eh.cpp:43:1: current parser token 'int'
2.    eh.cpp:32:4: LLVM IR generation of declaration 'B::B'
3.    eh.cpp:32:4: Generating code for declaration 'B::B'
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 (gitosis at dmz-portal.mips.com:clang.git
c5902bafd22cdbdb56f16bad6521f63ca80625f5) (gitosis at dmz-portal.mips.com:llvm.git
87a34137b60372c02101e0d57618c01844e813c0)
Target: mipsel--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.
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/eh-WFofLx.cpp
clang: note: diagnostic msg: /tmp/eh-WFofLx.sh
clang: note: diagnostic msg: 

********************

-- 
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/20130318/4b441995/attachment.html>


More information about the llvm-bugs mailing list