http://llvm.org/bugs/show_bug.cgi?id=7252
Summary: clang c++ crash in lookup for ambiguous template base
classes
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
namespace A {
template<typename T> struct Base { typedef T t; };
}
namespace B {
template<typename T> struct Base { typedef T t; };
}
template<typename T> struct Derived : A::Base<char>, B::Base<int> {
typename Derived::Base<float>::t x;
};
Crashes with:
clang: /home/eli/llvm/tools/clang/lib/Sema/Lookup.h:548: void
clang::LookupResult::sanity() const: Assertion `(Paths != __null) ==
(ResultKind == Ambiguous && (Ambiguity == AmbiguousBaseSubobjectTypes ||
Ambiguity == AmbiguousBaseSubobjects))' failed.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs