diff options
Diffstat (limited to 'test/SemaTemplate/instantiation-order.cpp')
-rw-r--r-- | test/SemaTemplate/instantiation-order.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaTemplate/instantiation-order.cpp b/test/SemaTemplate/instantiation-order.cpp index e058a5bc1873..9cac256ad458 100644 --- a/test/SemaTemplate/instantiation-order.cpp +++ b/test/SemaTemplate/instantiation-order.cpp @@ -5,11 +5,11 @@ template <class T> struct A { using X = typename T::X; }; // expected-error {{no members}} template <class T> typename T::X f(typename A<T>::X); template <class T> void f(...) {} -template <class T> auto g(typename A<T>::X) -> typename T::X; // expected-note {{here}} expected-note {{substituting}} +template <class T> auto g(typename A<T>::X) -> typename T::X; // expected-note {{here}} template <class T> void g(...) {} void h() { f<int>(0); // ok, SFINAE in return type - g<int>(0); // not ok, substitution inside A<int> is a hard error + g<int>(0); // not ok, substitution inside A<int> is a hard error // expected-note {{substituting}} } |