Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ63.C
blob: a65f53b2963b924ab55438f777282d3ec08706a7 [
file
] [
log
] [
blame
]
// PR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF.
// { dg-do compile { target c++14 } }
constexpr
bool
f
(
const
char
*)
{
return
true
;
}
template
<
typename
T
>
const
char
c
=
"FOO"
[
f
(
"BAR"
)
?
1
:
0
];