llvm-project/clang/test/SemaTemplate/typo-dependent-name.cpp
Douglas Gregor c119dd50c2 When determining whether a given name is a template in a dependent
context, do not attempt typo correction. This harms performance (as
Abramo noted) and can cause some amusing errors, as in this new
testcase.

llvm-svn: 93240
2010-01-12 17:06:20 +00:00

18 lines
232 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>
struct Base {
T inner;
};
template<typename T>
struct X {
template<typename U>
struct Inner {
};
bool f(T other) {
return this->inner < other;
}
};