http://llvm.org/bugs/show_bug.cgi?id=6899
Summary: Clang cannot mangle dependent template names
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following code causes an assertion in name mangling:
template<typename T>
struct supermeta {
template<typename U>
struct apply {
typedef T U::*type;
};
};
struct X { };
template<typename T, typename U>
typename supermeta<T>::template apply<U>::type f();
void test_f() {
f<int, X>();
}
Assertion failed: (TD && "FIXME: Support dependent template names"), function
mangleUnresolvedScope, file
/Users/dgregor/Projects/llvm/tools/clang/lib/CodeGen/Mangle.cpp, line 477.
Stack dump:
0. Program arguments: /Users/dgregor/Projects/llvm-xcode/bin/Debug/clang
-cc1 -emit-llvm -o -
/Users/dgregor/Projects/llvm/tools/clang/test/CodeGenCXX/mangle-template.cpp
--
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