Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
lambda-uneval12.C
blob: c66c6f8353f9b09f55b3fd546ee73e496ba316d7 [
file
] [
log
] [
blame
]
// PR c++/94521
// { dg-do compile { target c++20 } }
template
<
typename
T
>
void
spam
(
decltype
([]{})
*
s
)
{
static_assert
(
__is_same
(
int
,
decltype
(
s
)));
// { dg-error "static assertion failed" }
}
void
foo
()
{
spam
<int>
(
nullptr
);
}