<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 --- - Crash on ignored attribute"
href="http://llvm.org/bugs/show_bug.cgi?id=17423">17423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash on ignored attribute
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>octoploid@yandex.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>markus@x4 clang_bugs % cat test2.ii
class c1 {
public:
virtual void foo();
};
class c2 {
virtual void method5();
};
class A : c1, c2 {
__attribute__((__stdcall__)) void method5() {}
};
A c3_instance;
markus@x4 clang_bugs % clang++ -c -O2 test2.ii
test2.ii:10:18: warning: calling convention '__stdcall__' ignored for this
target [-Wignored-attributes]
__attribute__((__stdcall__)) void method5() {}
^
0 clang-3.4 0x0000000000fc47f2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang-3.4 0x0000000000fc43c4
2 libpthread.so.0 0x00007fd20f711820
3 clang-3.4 0x00000000010470d3
clang::CodeGen::CodeGenTypes::isFuncTypeArgumentConvertible(clang::QualType) +
19
4 clang-3.4 0x0000000001047247
clang::CodeGen::CodeGenTypes::isFuncTypeConvertible(clang::FunctionType const*)
+ 23
5 clang-3.4 0x000000000101fec6
clang::CodeGen::CodeGenVTables::MaybeEmitThunkAvailableExternally(clang::GlobalDecl,
clang::ThunkInfo const&) + 70
6 clang-3.4 0x0000000001020467
clang::CodeGen::CodeGenVTables::CreateVTableInitializer(clang::CXXRecordDecl
const*, clang::VTableComponent const*, unsigned int, std::pair<unsigned long,
clang::ThunkInfo> const*, unsigned int) + 967
7 clang-3.4 0x00000000010556f1
8 clang-3.4 0x000000000101f1fa
clang::CodeGen::CodeGenModule::EmitDeferredVTables() + 90
9 clang-3.4 0x000000000103b1e8
clang::CodeGen::CodeGenModule::EmitDeferred() + 40
10 clang-3.4 0x000000000103b279 clang::CodeGen::CodeGenModule::Release()
+ 9
11 clang-3.4 0x0000000000fe6330
12 clang-3.4 0x0000000001271f55 clang::ParseAST(clang::Sema&, bool, bool)
+ 805
13 clang-3.4 0x00000000011c0da9 clang::FrontendAction::Execute() + 169
14 clang-3.4 0x00000000011a30e8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 296
15 clang-3.4 0x0000000000fc7d0a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1402
16 clang-3.4 0x00000000006dcb88 cc1_main(char const**, char const**, char
const*, void*) + 824
17 clang-3.4 0x00000000006c77c9 main + 9193
18 libc.so.6 0x00007fd20f12ba75 __libc_start_main + 245
19 clang-3.4 0x00000000006dbdc2
Stack dump:
0. Program arguments: /usr/local/bin/clang-3.4 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name test2.ii -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -coverage-file /var/tmp/clang_bugs/test2.o
-resource-dir /usr/local/bin/../lib/clang/3.4 -O2 -fdeprecated-macro
-fdebug-compilation-dir /var/tmp/clang_bugs -ferror-limit 19 -fmessage-length
174 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o test2.o -x c++-cpp-output test2.ii
1. <eof> parser at end of file
2. Per-file LLVM IR generation
clang-3.4: error: unable to execute command: Segmentation fault
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
f78bf4a0132a3ea366ba3baadd9d6af26c617d11) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
835e284214c6e920924b5375590e77fd953cbefe)
Target: x86_64-unknown-linux-gnu
Thread model: posix
The crash isn't 100% reproducible. Sometimes you have to compile a few
times to trigger it.</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>