Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if15.C
blob: 49c7b7abb6335f33c46cc0f83912e4fc747892de [
file
] [
log
] [
blame
]
// PR c++/84854
// { dg-do compile { target c++17 } }
constexpr
int
foo
()
{
return
1
;
}
constexpr
int
foo
(
int
)
{
return
2
;
}
template
<typename>
void
a
()
{
if
constexpr
(
foo
)
{
};
// { dg-error "overloaded" }
}