diff options
author | Tobias Schlüter <tobi@gcc.gnu.org> | 2004-06-09 14:55:50 +0200 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2004-06-09 14:55:50 +0200 |
commit | 62f1d4705d0b042e13faad97ea12b665b4f3ad84 (patch) | |
tree | c1de926e45c095751fbacdbbeac74a56885562fc /gcc/fortran/trans-decl.c | |
parent | b40742a53183a904e4902b1fcad54b7b2c6cf57d (diff) | |
download | gcc-62f1d4705d0b042e13faad97ea12b665b4f3ad84.zip gcc-62f1d4705d0b042e13faad97ea12b665b4f3ad84.tar.gz gcc-62f1d4705d0b042e13faad97ea12b665b4f3ad84.tar.bz2 |
re PR fortran/13372 (ICE in trans-types.c (gfc_typenode_for_spec), see #13201)
fortran/
PR fortran/13372
* module.c (write_symbol, write_symtree): Don't write symbols
wrongly added to namespace.
* trans-decl.c (gfc_create_module_variable): Don't create a
backend decl for a symbol incorrectly added to namespace.
testsuite/
PR fortran/13372
* gfortran.fortran-torture/compile/named_args_2.f90: New test.
From-SVN: r82834
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r-- | gcc/fortran/trans-decl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 7bd912e..1420737 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -1788,6 +1788,12 @@ gfc_create_module_variable (gfc_symbol * sym) && (sym->attr.flavor != FL_PARAMETER || sym->attr.dimension == 0)) return; + if (sym->attr.flavor == FL_VARIABLE && sym->ts.type == BT_UNKNOWN) + /* TODO: This is a workaround for the issue outlined in PR 15481, + and it fixes the bug in PR13372. This should never happen in an + ideal frontend. */ + return; + /* Don't generate variables from other modules. */ if (sym->attr.use_assoc) return; |