[LLVMbugs] [Bug 23194] New: Assertion failed: (isa<LabelDecl>(D) && "declaration not instantiated in this scope")
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 10 14:04:26 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23194
Bug ID: 23194
Summary: Assertion failed: (isa<LabelDecl>(D) && "declaration
not instantiated in this scope")
Product: clang
Version: trunk
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: howard.hinnant at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Assertion failed: (isa<LabelDecl>(D) && "declaration not instantiated in this
scope"), function findInstantiationOf, file
/Users/howardhinnant/Development/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp,
line 2802.
Here is a reduced case that comes from real-world code which causes this assert
in clang tip-of-trunk:
struct X
{
int operator()() const {return 0;}
};
struct Y
{
Y(int) {}
};
template <bool = true>
int
make_seed_pair() noexcept
{
struct state_t
{
X x;
Y y{x()};
};
return 0;
}
int
main()
{
auto s = make_seed_pair();
}
Using this command line:
clang++ -std=c++11 test.cpp
This is a regression. This compiler compiles this example ok:
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
--
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/20150410/9c120307/attachment.html>
More information about the llvm-bugs
mailing list