re PR fortran/27269 (Segfault with EQUIVALENCEs in modules together with ONLY clauses)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 2 May 2006 14:13:17 +0000 (14:13 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 2 May 2006 14:13:17 +0000 (14:13 +0000)
commit613e2ac8d3dc830f03c00b165ffcf85b96717240
tree5e8905912be5f73f8c12dcef22be42404b8d7168
parent597fb86c9078a5d7e1e84b222eb18012263cfb8c
re PR fortran/27269 (Segfault with EQUIVALENCEs in modules together with ONLY clauses)

2006-05-02 Paul Thomas <pault@gcc.gnu.org>

        PR fortran/27269
        * module.c: Add static flag in_load_equiv.
        (mio_expr_ref): Return if no symtree and in_load_equiv.
        (load_equiv): If any of the equivalence members have no symtree, free
        the equivalence and the associated expressions.

        PR fortran/27324
        * trans-common.c (gfc_trans_common): Invert the order of calls to
        finish equivalences and gfc_commit_symbols.

        PR fortran/27269
        PR fortran/27324
        * gfortran.dg/module_equivalence_2.f90: New test.

From-SVN: r113465
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_equivalence_2.f90 [new file with mode: 0644]