[LLVMbugs] [Bug 14712] New: clang: /usr/local/clang/build/src/trunk/llvm/tools/clang/lib/AST/Decl.cpp:630: LinkageInfo clang::NamedDecl::getLinkageAndVisibility() const: Assertion `LV == computeLVForDecl(this, false)' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 24 23:03:08 PST 2012


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

             Bug #: 14712
           Summary: clang:
                    /usr/local/clang/build/src/trunk/llvm/tools/clang/lib/
                    AST/Decl.cpp:630: LinkageInfo
                    clang::NamedDecl::getLinkageAndVisibility() const:
                    Assertion `LV == computeLVForDecl(this, false)'
                    failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Dave at Yost.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


make[1]: Entering directory `/usr/local/clang/build/build/lib/Support'
llvm[1]: Compiling ConstantRange.cpp for Release+Asserts build
clang: /usr/local/clang/build/src/trunk/llvm/tools/clang/lib/AST/Decl.cpp:630:
LinkageInfo clang::NamedDecl::getLinkageAndVisibility() const: Assertion `LV ==
computeLVForDecl(this, false)' failed.
0  clang           0x0000000001d1fe72
1  clang           0x0000000001d20303
2  libpthread.so.0 0x00000033f5c0efe0
3  libc.so.6       0x00000033f5435935 gsignal + 53
4  libc.so.6       0x00000033f54370e8 abort + 328
5  libc.so.6       0x00000033f542e6a2
6  libc.so.6       0x00000033f542e752
7  clang           0x0000000001071c52
clang::NamedDecl::getLinkageAndVisibility() const + 114
8  clang           0x0000000001071bd6 clang::NamedDecl::getLinkage() const + 6
9  clang           0x00000000010ffe94
10 clang           0x00000000010ff4e4
11 clang           0x00000000010fee61
12 clang           0x00000000010fdc21
13 clang           0x000000000110a35f
14 clang           0x00000000010fcf15
15 clang           0x00000000007cb6e1
clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl) + 769
16 clang           0x00000000007cf0a9
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 2105
17 clang           0x00000000007d4864
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 948
18 clang           0x00000000007c744f
19 clang           0x00000000007c67c7
20 clang           0x0000000000c411d9
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1113
21 clang           0x0000000000c424bb
clang::Sema::PerformPendingInstantiations(bool) + 315
22 clang           0x00000000009816c9 clang::Sema::ActOnEndOfTranslationUnit()
+ 441
23 clang           0x0000000000901f92
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 178
24 clang           0x00000000008fe7e6 clang::ParseAST(clang::Sema&, bool, bool)
+ 454
25 clang           0x00000000007c5cb4 clang::CodeGenAction::ExecuteAction() +
500
26 clang           0x00000000006603aa clang::FrontendAction::Execute() + 106
27 clang           0x000000000064210d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
28 clang           0x000000000062979e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3230
29 clang           0x0000000000620791 cc1_main(char const**, char const**, char
const*, void*) + 705
30 clang           0x0000000000625990 main + 3216
31 libc.so.6       0x00000033f5421735 __libc_start_main + 245
32 clang           0x00000000006203ed
Stack dump:
0.    Program arguments:
/usr/local/clang/2012-12-24T20_05-171049-trunk_built-with_2012-12-24T14_03-171044-trunk_built-with_2012-12-21T14_26-170931-trunk/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
ConstantRange.cpp -mrelocation-model pic -pic-level 2 -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.22.52.0.1 -momit-leaf-frame-pointer
-coverage-file
/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.o
-resource-dir
/usr/local/clang/2012-12-24T20_05-171049-trunk_built-with_2012-12-24T14_03-171044-trunk_built-with_2012-12-21T14_26-170931-trunk/bin/../lib/clang/3.3
-dependency-file
/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.d.tmp
-MP -MT
/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.o -MT
/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.d -D
_DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
__STDC_LIMIT_MACROS -I /usr/local/clang/build/build/include -I
/usr/local/clang/build/build/lib/Support -I
/usr/local/clang/build/src/trunk/llvm/include -I
/usr/local/clang/build/src/trunk/llvm/lib/Support -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/clang/2012-12-24T20_05-171049-trunk_built-with_2012-12-24T14_03-171044-trunk_built-with_2012-12-21T14_26-170931-trunk/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Woverloaded-virtual -Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcovered-switch-default -fconst-strings -fdeprecated-macro
-fdebug-compilation-dir /usr/local/clang/build/build/lib/Support -ferror-limit
19 -fmessage-length 0 -fvisibility-inlines-hidden -mstackrealign -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -backend-option -vectorize-loops
-o /usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.o -x
c++ /usr/local/clang/build/src/trunk/llvm/lib/Support/ConstantRange.cpp 
1.    <eof> parser at end of file
2.    /usr/local/clang/build/src/trunk/llvm/include/llvm/InstrTypes.h:112:3
<Spelling=/usr/local/clang/build/src/trunk/llvm/include/llvm/OperandTraits.h:117:30>:
instantiating function definition 'Op'
3.    /usr/local/clang/build/src/trunk/llvm/include/llvm/InstrTypes.h:112:3
<Spelling=/usr/local/clang/build/src/trunk/llvm/include/llvm/OperandTraits.h:117:30>:
LLVM IR generation of declaration 'llvm::UnaryInstruction::Op'
4.    /usr/local/clang/build/src/trunk/llvm/include/llvm/InstrTypes.h:112:3
<Spelling=/usr/local/clang/build/src/trunk/llvm/include/llvm/OperandTraits.h:117:30>:
Mangling declaration 'llvm::UnaryInstruction::Op'
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 (trunk 171049)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ 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/ConstantRange-VbnyAO.cpp
clang: note: diagnostic msg: /tmp/ConstantRange-VbnyAO.sh
clang: note: diagnostic msg: 

********************
/usr/bin/rm: cannot remove
`/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.d.tmp':
No such file or directory
make[1]: ***
[/usr/local/clang/build/build/lib/Support/Release+Asserts/ConstantRange.o]
Error 1
make[1]: Leaving directory `/usr/local/clang/build/build/lib/Support'
make: *** [install] Error 1
Build failed. Exiting.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list