Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp26
/
pack-indexing12.C
blob: d958af3620d0a282ce06afb9d5fa15afda6753f8 [
file
] [
log
] [
blame
]
// PR c++/117898
// { dg-do compile { target c++26 } }
void
ICE
(
auto
...
args
)
{
[&]<
int
idx
>()
{
using
R
=
decltype
(
args
...[
idx
]);
// { dg-error "cannot index an empty pack" }
}.
template
operator
()<
0
>();
}
void
g
()
{
ICE
();
// empty pack
}