https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123611
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 63565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63565&action=edit gcc16-pr123611.patch The problem is in me trying to save compile time and memory by not creating a consteval lambda for the N computation https://eel.is/c++draft/stmt.expand#5.2 This patch forces the evaluation to be in_immediate_context () and so fixes the testcase.
