https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126314
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |14.1.0
--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Before GCC 14 with release checking GCC rejected it with:
<source>: In instantiation of 'constexpr base::base(auto:1) [with auto:1 =
int]':
<source>:13:14: required from here
<source>:9:26: error: 'n' is not a constant expression
9 | : data(true ? foo(n) : n) {}
| ~~~^~~