https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 51446 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51446&action=edit fix that causes regressions This patch fixes this testcase, but regresses the testcases from PR91506 and PR41786 due to giving the error during tentative parsing, before the tentative parse fails and we parse the statement again as a (well-formed) expression. Addressing that would be a lot more work than this obscure borderline bug merits.