re PR translation/90035 (Non-translatable C++ parser diagnostics)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Apr 2019 15:28:18 +0000 (17:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Apr 2019 15:28:18 +0000 (17:28 +0200)
commit657184d086a57eb214dda530035563a1ecc3df10
treec0300bc78486da858fa3fc094ba9569b679abe8a
parent8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38
re PR translation/90035 (Non-translatable C++ parser diagnostics)

PR translation/90035
* parser.h (struct cp_parser): Add
type_definition_forbidden_message_arg member.
* parser.c (cp_debug_parser): Print it.
(cp_parser_check_type_definition): Pass
parser->type_definition_forbidden_message_arg as second argument to
error.
(cp_parser_has_attribute_expression, cp_parser_sizeof_operand): Set
parser->type_definition_forbidden_message_arg and use G_() with
%qs for parser->type_definition_forbidden_message instead of
building untranslatable message using concat.

From-SVN: r270286
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/parser.h