[LLVMbugs] [Bug 20525] New: Crash on invalid (dyn_cast a nullptr)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Aug 3 22:06:22 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20525
Bug ID: 20525
Summary: Crash on invalid (dyn_cast a nullptr)
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: popizdeh at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Foo is undeclared and clang ends up calling dyn_cast on nullptr in
Sema::FinalizeDeclaration.
clang -cc1 -fsyntax-only
struct test
{
template <bool B, typename T = void> struct enable_if;
template <typename T> struct enable_if<true, T> { typedef T Type; };
template <typename T>
static typename enable_if<Foo<T>::bar, void>::Type method()
{
}
};
--
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/20140804/836a8d67/attachment.html>
More information about the llvm-bugs
mailing list