re PR fortran/16861 ([4.0 only] segfault with doubly used module)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Sep 2005 17:16:07 +0000 (17:16 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Sep 2005 17:16:07 +0000 (17:16 +0000)
commitacff2da93c917c21aca570e2a41ee613c2b32c2e
treed068f8c60390d286e2f452c877da2e48722452f1
parente1e73e8db762a241a34ccf564e9592992535151e
re PR fortran/16861 ([4.0 only] segfault with doubly used module)

2005-09-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/16861
* module.c (mio_component_ref): Return if the symbol is NULL
and wait for another iteration during module reads.
(mio_symtree_ref): Suppress the writing of contained symbols,
when a symbol is available in the main namespace.
(read_module): Restrict scope of special treatment of contained
symbols to variables only and suppress redundant call to
find_true_name.

2005-09-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/16861
* gfortran.dg/nested_modules_3.f90: New.

From-SVN: r104574
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/nested_modules_3.f90 [new file with mode: 0644]