diff options
author | Tobias Burnus <burnus@net-b.de> | 2014-06-25 22:26:42 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2014-06-25 22:26:42 +0200 |
commit | aa9ca5ca4f3e9e272a7dcc518d037927b319bb27 (patch) | |
tree | a15b037bed16a18aeac9a00c6147d44c259deb02 /gcc/fortran/expr.c | |
parent | db88b449589fa989c1f72e4796d2bce291b6cedf (diff) | |
download | gcc-aa9ca5ca4f3e9e272a7dcc518d037927b319bb27.zip gcc-aa9ca5ca4f3e9e272a7dcc518d037927b319bb27.tar.gz gcc-aa9ca5ca4f3e9e272a7dcc518d037927b319bb27.tar.bz2 |
check.c (check_co_minmaxsum): Add definable check.
gcc/fortran/
2014-06-25 Tobias Burnus <burnus@net-b.de>
* check.c (check_co_minmaxsum): Add definable check.
* expr.c (gfc_check_vardef_context): Fix context == NULL case.
* trans-expr.c (get_scalar_to_descriptor_type): Handle pointer
arguments.
* trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fix generation
of temporary strings.
gcc/testsuite/
2014-06-25 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/coarray_collectives_7.f90: New.
From-SVN: r211992
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index f0238c1..feb089e 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -4956,10 +4956,11 @@ gfc_check_vardef_context (gfc_expr* e, bool pointer, bool alloc_obj, en = n->expr; if (gfc_dep_compare_expr (ec, en) == 0) { - gfc_error_now ("Elements with the same value at %L" - " and %L in vector subscript" - " in a variable definition" - " context (%s)", &(ec->where), + if (context) + gfc_error_now ("Elements with the same value at %L" + " and %L in vector subscript" + " in a variable definition" + " context (%s)", &(ec->where), &(en->where), context); return false; } |