[Bug fortran/78277] ICE in is_anonymous_component, at fortran/interface.c:450

foreese at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 10 21:57:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78277

--- Comment #4 from Fritz Reese <foreese at gcc dot gnu.org> ---
Author: foreese
Date: Thu Nov 10 21:57:13 2016
New Revision: 242058

URL: https://gcc.gnu.org/viewcvs?rev=242058&root=gcc&view=rev
Log:
Fix ICE and improve errors for invalid anonymous structure declarations.

        PR fortran/78277
        * gcc/fortran/decl.c (gfc_match_data_decl): Gracefully handle bad
        anonymous structure declarations.

        PR fortran/78277
        * gcc/testsuite/gfortran.dg/dec_structure_17.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/dec_structure_17.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list