[llvm-bugs] [Bug 28500] New: Assertion failed: isa<LabelDecl>(D) && "declaration not instantiated in this scope"
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 11 08:41:41 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28500
Bug ID: 28500
Summary: Assertion failed: isa<LabelDecl>(D) && "declaration
not instantiated in this scope"
Product: clang
Version: 3.8
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: jtony at ca.ibm.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Steps to reproduce on linux:
-bash-4.2$ cat r.cpp
template <class T> void bar(T t = [](decltype(t) i){return 0;}(0)) {}
void foo()
{
bar<int>();
}
-bash-4.2$ pwd
/home/jtony/workitems/132592
-bash-4.2$ cat r.cpp
template <class T> void bar(T t = [](decltype(t) i){return 0;}(0)) {}
void foo()
{
bar<int>();
}
bash-4.2$ myclang++ r.cpp -std=c++11
clang:
/home/jtony/build/3_8/llvm-dev.src/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:2811:
llvm::PointerUnion<clang::Decl*, llvm::Smal
lVector<clang::ParmVarDecl*, 4u>*>*
clang::LocalInstantiationScope::findInstantiationOf(const clang::Decl*):
Assertion `isa<LabelDecl>(D) &&
"declaration not instantiated in this scope"' failed.
0 clang 0x000000001568c4e4 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 68
...
clang version 3.8.0 (tags/RELEASE_380/final)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
-bash-4.2$ type myclang
myclang is aliased to `/home/jtony/build/runnable/bin/clang'
--
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/20160711/3951b77f/attachment.html>
More information about the llvm-bugs
mailing list