[LLVMbugs] [Bug 19441] New: Assertion failure: Unsupported aliasee
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 16 00:59:57 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19441
Bug ID: 19441
Summary: Assertion failure: Unsupported aliasee
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: magnus.reftel at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12379
--> http://llvm.org/bugs/attachment.cgi?id=12379&action=edit
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.
--
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/20140416/ec2c70c5/attachment.html>
More information about the llvm-bugs
mailing list