diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-12-02 15:49:20 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2009-12-02 15:49:20 +0000 |
commit | 4cd5a50a09d5561ff182b37b7429006c35f430df (patch) | |
tree | eb09280053de717f24d7f3580c21560495b034ce /gcc/tree.c | |
parent | 2f697bc476c63bcf039cd8465b8eb9113406a712 (diff) | |
download | gcc-4cd5a50a09d5561ff182b37b7429006c35f430df.zip gcc-4cd5a50a09d5561ff182b37b7429006c35f430df.tar.gz gcc-4cd5a50a09d5561ff182b37b7429006c35f430df.tar.bz2 |
re PR c++/29917 (%s substituted with actual words can not be translated correctly (op_error))
2009-12-02 Paolo Bonzini <bonzini@gnu.org>
Shujing Zhao <pearly.zhao@oracle.com>
PR c++/29917
* call.c (op_error): Accept a boolean to indicate no match/ambiguous
match, instead of a string. Callers adjusted.
PR c++/34836
* cp-tree.h (readonly_error_kind): New type.
(readonly_error): Adjust prototype with new argument.
* typeck2.c (readonly_error): Accept readonly_error_kind as argument
and add macro ERROR_FOR_ASSIGNMENT to emit diagnostics.
* semantics.c (finish_asm_stmt): Adjust readonly_error call.
* typeck.c (cp_build_unary_op, cp_build_modify_expr): Likewise.
* decl.c (grokparms, grok_op_properties): Put the diagnostics in full
sentences for easy translation and wrap the diagnostics into G_() when
needed.
(create_array_type_for_decl): Likewise.
* pt.c (tsubst): Likewise.
* typeck2.c (cp_build_unary_op): Wrap diagnostic into _().
* rtti.c (build_dynamic_cast_1): Likewise.
Co-Authored-By: Shujing Zhao <pearly.zhao@oracle.com>
From-SVN: r154915
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions