[Bug c++/123658] [13/14/15/16 Regression] ICE in tsubst_expr (at cp/pt.cc) when lambda in template accesses member of local constexpr struct without capture
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 18 08:41:56 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123658
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Known to work|13.3.0, 14.2.0 |
Last reconfirmed| |2026-01-18
Target Milestone|--- |13.5
Known to fail| |12.1.0
Status|UNCONFIRMED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
`x.value ?: 0;` was ICEing all the way to GCC 12.1.0
while `x.value ?x.value: 0;` was being rejected until 13.4.0, 14.3.0, 15.1.0
where GCC starts to ICE too.
`x.value ;` was accepted until GCC 14.1.0 when GCC starts to ICE.
More information about the Gcc-bugs
mailing list