]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: use G_ instead of _
authorJason Merrill <jason@redhat.com>
Wed, 18 Oct 2023 18:10:39 +0000 (14:10 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 19 Oct 2023 15:30:03 +0000 (11:30 -0400)
commitf53de2baae5a6992d93d58951c4c0a25ee678091
treee850760f99a4d13241871b5af9e40f8b6317fdb7
parent04d6c74564b7eb51660a00b35353aeab706b5a50
c++: use G_ instead of _

Since these strings are passed to error_at, they should be marked for
translation with G_, like other diagnostic messages, rather than _, which
forces immediate (redundant) translation.  The use of N_ is less
problematic, but also imprecise.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_primary_expression): Use G_.
(cp_parser_using_enum): Likewise.
* decl.cc (identify_goto): Likewise.
gcc/cp/decl.cc
gcc/cp/parser.cc