<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 failure: Unsupported aliasee"
href="http://llvm.org/bugs/show_bug.cgi?id=19441">19441</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure: Unsupported aliasee
</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>magnus.reftel@gmail.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=12379" name="attach_12379" title="Reduced testcase">attachment 12379</a> <a href="attachment.cgi?id=12379&action=edit" title="Reduced testcase">[details]</a></span>
Reduced testcase
The following (possibly invalid) testcase makes "clang -c testcase.c" fail an
assertion:
int a[1];
int b __attribute__ ((alias ("a")));
The assertion failure is
clang: CodeGenModule.cpp:243: void
clang::CodeGen::CodeGenModule::checkAliases(): Assertion `(CE->getOpcode() ==
llvm::Instruction::BitCast || CE->getOpcode() ==
llvm::Instruction::AddrSpaceCast) && "Unsupported aliasee"' failed.
0 clang 0x0000000002612f52 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang 0x0000000002612b74
2 libpthread.so.0 0x00007f4a715b2bb0
3 libc.so.6 0x00007f4a705c6f77 gsignal + 55
4 libc.so.6 0x00007f4a705ca5e8 abort + 328
5 libc.so.6 0x00007f4a705bfd43
6 libc.so.6 0x00007f4a705bfdf2
7 clang 0x0000000000a9e948
clang::CodeGen::CodeGenModule::checkAliases() + 504
8 clang 0x0000000000aa2509 clang::CodeGen::CodeGenModule::Release()
+ 25
9 clang 0x0000000000a36231
10 clang 0x0000000000bdb85b clang::ParseAST(clang::Sema&, bool, bool)
+ 507
11 clang 0x0000000000a36ede clang::CodeGenAction::ExecuteAction() +
78
12 clang 0x00000000008a67d6 clang::FrontendAction::Execute() + 150
13 clang 0x00000000008845e0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
14 clang 0x000000000086bed2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1810
15 clang 0x0000000000865758 cc1_main(char const**, char const**, char
const*, void*) + 1288
16 clang 0x0000000000841544 main + 756
17 libc.so.6 0x00007f4a705b1de5 __libc_start_main + 245
18 clang 0x000000000086452d
The last version I've tested where this does not happen is r204895 and the
first version I've tested where it does happen is r204985.</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>