aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-07-15 20:50:17 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-07-15 20:50:17 +0200
commitc5a419530e095f316911d63e6c2eb0008b10d160 (patch)
tree280339d8914657855c3ee4ea1f6c1fe0f773ae61 /gcc/fortran
parentd157d9782201b9cd3b795add94e350506bc7d7e6 (diff)
downloadgcc-c5a419530e095f316911d63e6c2eb0008b10d160.zip
gcc-c5a419530e095f316911d63e6c2eb0008b10d160.tar.gz
gcc-c5a419530e095f316911d63e6c2eb0008b10d160.tar.bz2
re PR fortran/15140 (assertion failed: (TREE_CODE (sym->backend_decl) == PARM_DECL)
fortran/ PR fortran/15140 * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion. testsuite/ PR fortran/15140 * gfortran.dg/pr15140.f90: New test. From-SVN: r84770
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog3
-rw-r--r--gcc/fortran/trans-decl.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 2667cb8..e69b5de 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -4,6 +4,9 @@
* trans-decl.c (gfc_build_function_decl): Create a new chardecl
for every assumed length character dummy argument.
+ PR fortran/15140
+ * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion.
+
2004-07-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/15324
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index f7cfd97..655c48b 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -1728,7 +1728,6 @@ gfc_trans_deferred_vars (gfc_symbol * proc_sym, tree fnbody)
assert (sym->attr.dummy);
/* We should always pass assumed size arrays the g77 way. */
- assert (TREE_CODE (sym->backend_decl) == PARM_DECL);
fnbody = gfc_trans_g77_array (sym, fnbody);
break;