repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-25.C
blob
959e79cc4164863002a36dba2266ce37566ece9a
1
// { dg-do compile { target c++14 } }
2
// { dg-options "-Wunused-but-set-variable" }
3
4
template <int... I> struct A { };
5
template <int... I>
6
auto f()
7
{
8
constexpr int ar[sizeof...(I)+1] = {I...};
9
return A<ar[I]...>();
10
}
11
12
int main()
13
{
14
f<>();
15
}