aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-04-11 17:28:18 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-04-11 17:28:18 +0200
commit657184d086a57eb214dda530035563a1ecc3df10 (patch)
treec0300bc78486da858fa3fc094ba9569b679abe8a /gcc/cp/parser.h
parent8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38 (diff)
downloadgcc-657184d086a57eb214dda530035563a1ecc3df10.zip
gcc-657184d086a57eb214dda530035563a1ecc3df10.tar.gz
gcc-657184d086a57eb214dda530035563a1ecc3df10.tar.bz2
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
Diffstat (limited to 'gcc/cp/parser.h')
-rw-r--r--gcc/cp/parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h
index 1d6cb2d..c03a9d8 100644
--- a/gcc/cp/parser.h
+++ b/gcc/cp/parser.h
@@ -350,6 +350,9 @@ struct GTY(()) cp_parser {
issued as an error message if a type is defined. */
const char *type_definition_forbidden_message;
+ /* Argument for type_definition_forbidden_message if needed. */
+ const char *type_definition_forbidden_message_arg;
+
/* A stack used for member functions of local classes. The lists
contained in an individual entry can only be processed once the
outermost class being defined is complete. */