diff options
author | Dominique d'Humieres <dominiq@lps.ens.fr> | 2017-08-01 11:02:58 +0200 |
---|---|---|
committer | Dominique d'Humieres <dominiq@gcc.gnu.org> | 2017-08-01 11:02:58 +0200 |
commit | f9c5fe06f992ba29fccf7b3a15f5424b9ff254ce (patch) | |
tree | c83e2cc227bb7d81dd0038c283749677c5bce8b7 /gcc/fortran/expr.c | |
parent | da98e3b126ee9976c24a1e64b99219b3444b4873 (diff) | |
download | gcc-f9c5fe06f992ba29fccf7b3a15f5424b9ff254ce.zip gcc-f9c5fe06f992ba29fccf7b3a15f5424b9ff254ce.tar.gz gcc-f9c5fe06f992ba29fccf7b3a15f5424b9ff254ce.tar.bz2 |
re PR fortran/53542 (Diagnostic of USE-associated variables shows original instead of renamed symbol name)
2017-08-01 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/53542
* expr.c (gfc_check_init_expr): Use the renamed name.
PR testsuite/53542
* gfortran.dg/use_30.f90: New test.
From-SVN: r250762
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index d19e2fd..64af02c 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -2591,7 +2591,7 @@ gfc_check_init_expr (gfc_expr *e) else gfc_error ("Parameter %qs at %L has not been declared or is " "a variable, which does not reduce to a constant " - "expression", e->symtree->n.sym->name, &e->where); + "expression", e->symtree->name, &e->where); break; |