aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/template-id-expr.cpp
blob: a0cbe4408494be716ea26dd0128df7627fa8aac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang-cc -fsyntax-only -verify %s

// PR5336
template<typename FromCl>
struct isa_impl_cl {
 template<class ToCl>
 static void isa(const FromCl &Val) { }
};

template<class X, class Y>
void isa(const Y &Val) {   return isa_impl_cl<Y>::template isa<X>(Val); }

class Value;
void f0(const Value &Val) { isa<Value>(Val); }