From 0f4f85614b2b844015a203494d070addbb870c3f Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Fri, 2 Nov 2018 20:20:43 +0000 Subject: [PATCH] re PR fortran/46020 (Improve error string for BIND(C) diagnostic for len>1 character return type) 2018-11-02 Thomas Koenig PR fortran/46020 * decl.c (verify_bind_c_sym): Remove unnecessary space in error message. From-SVN: r265757 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/decl.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 134c43db644..689c754e4eb 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2018-11-02 Thomas Koenig + + PR fortran/46020 + * decl.c (verify_bind_c_sym): Remove unnecessary space + in error message. + 2018-11-01 Thomas Koenig PR fortran/87782 diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 47c939ca85e..2b77d950abb 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -5648,7 +5648,7 @@ verify_bind_c_sym (gfc_symbol *tmp_sym, gfc_typespec *ts, || tmp_sym->ts.u.cl->length->expr_type != EXPR_CONSTANT || mpz_cmp_si (tmp_sym->ts.u.cl->length->value.integer, 1) != 0) gfc_error ("Return type of BIND(C) function %qs of character " - "type at %L must have length 1 ", tmp_sym->name, + "type at %L must have length 1", tmp_sym->name, &(tmp_sym->declared_at)); } -- 2.30.2