On 5/14/19 3:33 PM, Martin Sebor wrote:
> The attached patch fixes quoting, spelling, and other formatting
> issues in diagnostics issued by the D front end and pointed out
> by the -Wformat-diag warning.
>
> Martin
>
> gcc-wformat-diag-d.diff
>
> gcc/d/ChangeLog:
>
> * d/d-builtins.cc (d_init_builtins): Quote keywords, operators,
> and types in diagnostics.
> * d/d-codegen.cc (get_array_length): Same. Replace can't with cannot.
> * d/d-convert.cc (convert_expr): Same.
> * d/d-frontend.cc (getTypeInfoType): Quote an option name in
> a diagnostic.
> * d/d-lang.cc (d_handle_option): Same.
> (d_parse_file): Same.
> * d/decl.cc: Remove a trailing period from a diagnostic.
> * d/expr.cc: Use a directive for an apostrophe.
> * d/toir.cc: Quote keywords, operators, and types in diagnostics.
> * d/typeinfo.cc (build_typeinfo): Quote an option name in a diagnostic.
>
> diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc
OK
jeff