This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]