re PR fortran/51605 (internal compiler error gfc_trans_block_construct, at fortran...
authorTobias Burnus <burnus@net-b.de>
Mon, 19 Dec 2011 15:30:23 +0000 (16:30 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 19 Dec 2011 15:30:23 +0000 (16:30 +0100)
commitcd99c23ca41f9fb6792e39f0e91a950cf1e531aa
tree2d37421d992c8c2c8df7d5e8606294c36915d130
parent6a9ceb1703fcf307cdeb4abab80e535d98857122
re PR fortran/51605 (internal compiler error gfc_trans_block_construct, at fortran/trans-stmt.c:984)

2011-12-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51605
        * match.c (gfc_match_select_type): Handle
        scalar polymophic coarrays.
        (select_type_set_tmp, ): Ditto; avoid segfault if !class_ok.
        * primary.c (gfc_match_rvalue): Avoid segfault if !class_ok.
        * resolve.c (resolve_select_type): Ditto.
        (resolve_assoc_var): Fix setting the TARGET attribute for
        polymorphic selectors which are pointers.

2011-12-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51605
        * gfortran.dg/select_type_25.f90: New.

From-SVN: r182484
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_type_25.f90 [new file with mode: 0644]