aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp b/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp
index c0a9eb6cd6..69f6b46c28 100644
--- a/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp
+++ b/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp
@@ -105,6 +105,20 @@ namespace Math {
};
int check3[sum<1, 2, 3, 4, 5>::value == 15? 1 : -1];
+
+#if 0
+ // FIXME: Instantiation of this fails.
+ template<int ... Values>
+ struct lazy_sum {
+ int operator()() {
+ return sum<Values...>::value;
+ }
+ };
+
+ void f() {
+ lazy_sum<1, 2, 3, 4, 5>()();
+ }
+#endif
}
namespace Indices {