https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88335
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #47032|0 |1 is obsolete| | Attachment #47042|0 |1 is obsolete| | --- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 47094 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47094&action=edit gcc10-pr88335.patch Just for the record, this is a variant of the patch that has testsuite coverage for immediate function calls in discarded statements (at least how I believe it should work), still using the cxx_eval_consteval rather than using again build_cxx_call.