[Bug c++/104709] A translated error message will include untanslated parts

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 4 10:37:52 GMT 2022


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.


More information about the Gcc-bugs mailing list