[LLVMbugs] [Bug 17875] New: clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl, clang::GlobalDecl, bool): Assertion `Linkage == TargetLinkage' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 11 06:38:19 PST 2013


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

            Bug ID: 17875
           Summary: clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlia
                    s(clang::GlobalDecl, clang::GlobalDecl, bool):
                    Assertion `Linkage == TargetLinkage' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat 1.ii

template < typename > class A
{
public:
    ~A ()
    {
    }
};

class B:A < int >
{
    ~B ();
};
template class A < int >;
B::~B ()
{
}

$ bin/clang++ -c 1.ii

clang-3.4: ../tools/clang/lib/CodeGen/CGCXX.cpp:154: bool
clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl,
clang::GlobalDecl, bool): Assertion `Linkage == TargetLinkage' failed.
0  clang-3.4       0x00000000013a3da5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang-3.4       0x00000000013a41f3
2  libpthread.so.0 0x00007f87ae1facb0
3  libc.so.6       0x00007f87ad438425 gsignal + 53
4  libc.so.6       0x00007f87ad43bb8b abort + 379
5  libc.so.6       0x00007f87ad4310ee
6  libc.so.6       0x00007f87ad431192
7  clang-3.4       0x000000000147b3ee
clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl,
clang::GlobalDecl, bool) + 670
8  clang-3.4       0x000000000147b008
clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias(clang::CXXDestructorDecl
const*) + 568
9  clang-3.4       0x000000000147bacd
clang::CodeGen::CodeGenModule::EmitCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType) + 205
10 clang-3.4       0x000000000140ba69
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 201
11 clang-3.4       0x000000000140d6e7
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 775
12 clang-3.4       0x0000000001410199
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1081
13 clang-3.4       0x00000000013c1bcf
14 clang-3.4       0x00000000013c1097
15 clang-3.4       0x0000000001682943 clang::ParseAST(clang::Sema&, bool, bool)
+ 435
16 clang-3.4       0x00000000013c0762 clang::CodeGenAction::ExecuteAction() +
514
17 clang-3.4       0x00000000015c70e0 clang::FrontendAction::Execute() + 112
18 clang-3.4       0x00000000015a554d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
19 clang-3.4       0x00000000013a7f85
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2853
20 clang-3.4       0x000000000067eeaf cc1_main(char const**, char const**, char
const*, void*) + 687
21 clang-3.4       0x000000000067d784 main + 9188
22 libc.so.6       0x00007f87ad42376d __libc_start_main + 237
23 clang-3.4       0x000000000067b29d

-- 
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/20131111/11434eab/attachment.html>


More information about the llvm-bugs mailing list