diff options
author | Janus Weil <janus@gcc.gnu.org> | 2011-07-19 14:38:59 +0200 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2011-07-19 14:38:59 +0200 |
commit | b21a544bb1a94f29adc4fc812cda0766b9a048e9 (patch) | |
tree | 82ac153c60a4d3190261bd322138ca4c235283ba /gcc/fortran | |
parent | 1b14d8150ed4a7194e3d63b262454e9b9446fe95 (diff) | |
download | gcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.zip gcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.tar.gz gcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.tar.bz2 |
re PR fortran/49708 (ICE with allocate and no dimensions)
2011-07-19 Janus Weil <janus@gcc.gnu.org>
PR fortran/49708
* resolve.c (resolve_allocate_expr): Fix diagnostics for pointers.
2011-07-19 Janus Weil <janus@gcc.gnu.org>
PR fortran/49708
* gfortran.dg/allocate_error_3.f90: New.
From-SVN: r176447
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a469ac9..5d8cc64 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-07-19 Janus Weil <janus@gcc.gnu.org> + + PR fortran/49708 + * resolve.c (resolve_allocate_expr): Fix diagnostics for pointers. + 2011-07-18 Tobias Burnus <burnus@net-b.de> * trans-decl.c (gfc_build_qualified_array): Make coarray's diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 53f45e8..71e0ba0 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -6886,7 +6886,7 @@ resolve_allocate_expr (gfc_expr *e, gfc_code *code) gfc_find_derived_vtab (ts.u.derived); } - if (pointer || (dimension == 0 && codimension == 0)) + if (dimension == 0 && codimension == 0) goto success; /* Make sure the last reference node is an array specifiction. */ |