[Bug fortran/62536] ICE (segfault) for invalid END BLOCK statement

vehre at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 28 11:34:00 GMT 2016


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

--- Comment #10 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Thu Jan 28 11:34:03 2016
New Revision: 232919

URL: https://gcc.gnu.org/viewcvs?rev=232919&root=gcc&view=rev
Log:
gcc/fortran/ChangeLog:

2016-01-28  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/62536
        * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
        when the END encountered does not match a BLOCK's end.

gcc/testsuite/ChangeLog:

2016-01-28  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/62536
        * gfortran.dg/block_15.f08: New test.
        * gfortran.dg/block_end_error_1.f90: Need to catch additional error
        on incorrectly closed BLOCK.


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


More information about the Gcc-bugs mailing list