aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/temp/temp.res/temp.dep/p3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/temp/temp.res/temp.dep/p3.cpp')
-rw-r--r--test/CXX/temp/temp.res/temp.dep/p3.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CXX/temp/temp.res/temp.dep/p3.cpp b/test/CXX/temp/temp.res/temp.dep/p3.cpp
index 576e310985..583fb4b3cc 100644
--- a/test/CXX/temp/temp.res/temp.dep/p3.cpp
+++ b/test/CXX/temp/temp.res/temp.dep/p3.cpp
@@ -77,4 +77,13 @@ namespace PR14402 {
template<> struct A<char>::E : A<char> {};
// 'cannot bind to a temporary'
char &s = A<char>::F().g(); // expected-note {{in instantiation of}}
+
+ struct X;
+ struct X { void f(); };
+ struct X;
+ template<typename T> struct Y : X {
+ void g() {
+ X::f();
+ }
+ };
}