diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-11-16 22:38:21 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-11-16 22:38:21 +0000 |
commit | f5fd0cf12def6df8ac3c6a95e886c73debc21677 (patch) | |
tree | e63f37c7e70bfdb8ebc41711e7e275e4f192310c /gcc/fortran/expr.c | |
parent | fb0a0e15917ce9b5b28ef8b0f250cbfc1a807d59 (diff) | |
download | gcc-f5fd0cf12def6df8ac3c6a95e886c73debc21677.zip gcc-f5fd0cf12def6df8ac3c6a95e886c73debc21677.tar.gz gcc-f5fd0cf12def6df8ac3c6a95e886c73debc21677.tar.bz2 |
re PR fortran/33957 (gfortran rejects valid initialization expression)
PR fortran/33957
* gfortran.dg/initialization_15.f90 : New test.
* expr.c (check_inquiry): Don't call gfc_error now.
From-SVN: r130246
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index c7edb49..22df131 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -1981,11 +1981,7 @@ check_inquiry (gfc_expr *e, int not_restricted) break; if (functions[i] == NULL) - { - gfc_error ("Inquiry function '%s' at %L is not permitted " - "in an initialization expression", name, &e->where); - return MATCH_ERROR; - } + return MATCH_ERROR; /* At this point we have an inquiry function with a variable argument. The type of the variable might be undefined, but we need it now, because the |