repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ14.C
blob
c3c50d1266c5848f855b5ecff3f0d8d19612155f
1
// PR c++/63528
2
// { dg-do compile { target c++14 } }
3
4
template<class...>
5
struct X
6
{
7
constexpr static bool value = true;
8
};
9
10
static_assert(X<int>::value, "");
11
12
template <class... Args>
13
constexpr bool X_v = X<Args...>::value;
14
15
static_assert(X_v<int>, "");