diff options
author | Tobias Schlüter <tobi@gcc.gnu.org> | 2005-03-19 20:45:45 +0100 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2005-03-19 20:45:45 +0100 |
commit | 9439ae414f662f6923a4067e0906b11baab5fa7c (patch) | |
tree | 8ce984e73898818d3c65ed4adee306261d23e5f4 /gcc/fortran/resolve.c | |
parent | 0de27aacb6dd0ee17f31b2019a21e75371e15a84 (diff) | |
download | gcc-9439ae414f662f6923a4067e0906b11baab5fa7c.zip gcc-9439ae414f662f6923a4067e0906b11baab5fa7c.tar.gz gcc-9439ae414f662f6923a4067e0906b11baab5fa7c.tar.bz2 |
re PR fortran/18525 (ICE on valid code in gfc_get_symbol_decl())
fortran/
* dump-parse-tree.c (gfc_show_expr): Dump name of namespace
in which the variable is declared.
PR fortran/18525
* resolve.c (was_declared): Also check for dummy attribute.
testsuite/
PR fortran/18525
* gfortran.dg/nesting_1.f90: New test.
From-SVN: r96739
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 730f4fb..16db943 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -481,7 +481,7 @@ was_declared (gfc_symbol * sym) if (!a.implicit_type && sym->ts.type != BT_UNKNOWN) return 1; - if (a.allocatable || a.dimension || a.external || a.intrinsic + if (a.allocatable || a.dimension || a.dummy || a.external || a.intrinsic || a.optional || a.pointer || a.save || a.target || a.access != ACCESS_UNKNOWN || a.intent != INTENT_UNKNOWN) return 1; |