freebsd-nq/test/SemaTemplate/template-id-expr.cpp

15 lines
328 B
C++
Raw Normal View History

2009-11-04 15:04:32 +00:00
// 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); }