Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if30.C
blob: 1e3d15dca1cb79c22944dfc8cc6980b23dd02d4d [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
auto
fn
=
[](
auto
i
)
{
if
constexpr
(
sizeof
(
i
)
==
1
)
return
fn
(
123
);
// { dg-error "auto" }
};
int
main
()
{
fn
(
'!'
);
}