diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-15 17:42:07 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-15 17:42:07 +0000 |
commit | 15eb2c608f7cf72dadd2781f2f6be4419a41295a (patch) | |
tree | 89e3d17b9f70a91c979df65dbbe83ca51abfdc14 /gcc/testsuite/g++.dg | |
parent | a3a6d499c752fde6bf5e2ea88d1cf344d24e15a5 (diff) | |
download | gcc-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.C | 15 |
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>, ""); |