summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-15 17:42:07 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-15 17:42:07 +0000
commit15eb2c608f7cf72dadd2781f2f6be4419a41295a (patch)
tree89e3d17b9f70a91c979df65dbbe83ca51abfdc14 /gcc/testsuite/g++.dg
parenta3a6d499c752fde6bf5e2ea88d1cf344d24e15a5 (diff)
downloadgcc-15eb2c608f7cf72dadd2781f2f6be4419a41295a.tar.gz
PR c++/63528
* pt.c (lookup_template_variable): Call coerce_template_parms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/var-templ14.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/var-templ14.C b/gcc/testsuite/g++.dg/cpp1y/var-templ14.C
new file mode 100644
index 00000000000..c3c50d1266c
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp1y/var-templ14.C
@@ -0,0 +1,15 @@
+// PR c++/63528
+// { dg-do compile { target c++14 } }
+
+template<class...>
+struct X
+{
+ constexpr static bool value = true;
+};
+
+static_assert(X<int>::value, "");
+
+template <class... Args>
+constexpr bool X_v = X<Args...>::value;
+
+static_assert(X_v<int>, "");