<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 --- - problem in clang for test-suite SingleSource/Regression/C++/EH/function_try_block.cpp for mips"
   href="http://llvm.org/bugs/show_bug.cgi?id=15538">15538</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>problem in clang for test-suite SingleSource/Regression/C++/EH/function_try_block.cpp for mips
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rkotler@mips.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>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=10196" name="attach_10196" title="shell script">attachment 10196</a> <a href="attachment.cgi?id=10196&action=edit" title="shell script">[details]</a></span>
shell script

rkotler@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 (<a href="mailto:gitosis@dmz-portal.mips.com">gitosis@dmz-portal.mips.com</a>:clang.git
c5902bafd22cdbdb56f16bad6521f63ca80625f5) (<a href="mailto:gitosis@dmz-portal.mips.com">gitosis@dmz-portal.mips.com</a>:llvm.git
87a34137b60372c02101e0d57618c01844e813c0)
Target: mipsel--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/eh-WFofLx.cpp
clang: note: diagnostic msg: /tmp/eh-WFofLx.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>