https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104709
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- A better way would be not to pass around errmsg but instead an enum what exact error it is and then just handle all of those in a switch. Like e.g. required_token in cp/parser.cc (cp_parser_required_error) etc.