https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- It seems like the problem is that cp_parser_braced_list doesn't check whether braces.require_close succeeded and compensate if it fails; in that case it might make sense to cp_parser_skip_to_closing_brace and try again.