summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/decltype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/decltype.cpp')
-rw-r--r--test/SemaCXX/decltype.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/decltype.cpp b/test/SemaCXX/decltype.cpp
index ccde3dc..d6e85d2 100644
--- a/test/SemaCXX/decltype.cpp
+++ b/test/SemaCXX/decltype.cpp
@@ -37,6 +37,14 @@ struct C {
// expected-error {{expected ')'}} expected-note {{to match this '('}}
};
+namespace PR16529 {
+ struct U {};
+ template <typename T> struct S {
+ static decltype(T{}, U{}) &f();
+ };
+ U &r = S<int>::f();
+}
+
template<typename>
class conditional {
};
OpenPOWER on IntegriCloud