mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Instantiation of default template argument, bug 284683.
This commit is contained in:
parent
3561a3e22b
commit
669ef1b53e
1 changed files with 21 additions and 0 deletions
|
@ -30,6 +30,7 @@ import org.eclipse.cdt.core.dom.ast.ITypedef;
|
|||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPBase;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPBasicType;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassScope;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassSpecialization;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplate;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplatePartialSpecialization;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
|
||||
|
@ -1678,4 +1679,24 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
|
|||
public void _testTemplateMetaprogramming_284686() throws Exception {
|
||||
getBindingFromASTName("f(v.begin())", 1, ICPPFunction.class);
|
||||
}
|
||||
|
||||
// template<typename T> class op {
|
||||
// public:
|
||||
// inline static int DO(T key, T key2) {
|
||||
// return false;
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// template<typename T, int KVT_KeyCompareProc(T key, T key2)=op<T>::DO> class Noder1 {};
|
||||
|
||||
// template<typename T, int KVT_KeyCompareProc(T key, T key2)=op<T>::DO> class Noder2 {};
|
||||
//
|
||||
// void test() {
|
||||
// Noder1<int> f;
|
||||
// Noder2<int> g;
|
||||
// }
|
||||
public void testInstantiationOfValue_284683() throws Exception {
|
||||
getBindingFromASTName("Noder1<int>", 11, ICPPClassSpecialization.class);
|
||||
getBindingFromASTName("Noder2<int>", 11, ICPPClassSpecialization.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue