[LLVMbugs] [Bug 9151] New: Assertion failed: ((Result || isa<UsingShadowDecl>(D) || D->isInvalidDecl() || cast<Decl>(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of declaration!")
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 5 15:24:16 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9151
Summary: Assertion failed: ((Result || isa<UsingShadowDecl>(D)
|| D->isInvalidDecl() ||
cast<Decl>(ParentDC)->isInvalidDecl()) && "Unable to
find instantiation of declaration!")
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6107)
--> (http://llvm.org/bugs/attachment.cgi?id=6107)
598.ii
Building mp4v2 (http://code.google.com/p/mp4v2/) 1.9.1 causes the following
clang assert:
In file included from src/bmff/typebmff.cpp:1:
src/bmff/typebmff.cpp:38:49: error: definition or redeclaration of 'data' not
in
a namespace enclosing 'Enum<mp4v2::impl::bmff::LanguageCode, 0>'
const EnumLanguageCode::Entry EnumLanguageCode::data[] = {
~~~~~~~~~~~~~~~~~~^
Assertion failed: ((Result || isa<UsingShadowDecl>(D) || D->isInvalidDecl() ||
cast<Decl>(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of
declaration!"), function FindInstantiatedDecl, file
/usr/src-local/llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp, line
2994.
Stack dump:
0. Program arguments: /usr/opt/llvm/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -S -disable-free -main-file-name typebmff.ii
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.15
-momit-leaf-frame-pointer -resource-dir /usr/opt/llvm/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o typebmff.s -x c++-cpp-output
typebmff.ii
1. <eof> parser at end of file
2. ./src/enum.h:96:5: instantiating function definition 'Enum'
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
Delta reduced test-case attached.
--
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