re PR fortran/69498 (ICE on disjunct cases with displaced or incomplete embedded...
authorNicolas Koenig <koenigni@student.ethz.ch>
Mon, 10 Apr 2017 20:58:21 +0000 (22:58 +0200)
committerNicolas Koenig <koenigni@gcc.gnu.org>
Mon, 10 Apr 2017 20:58:21 +0000 (20:58 +0000)
commita2cb1196cf9a8e46e0bbaa2998b98ecbc8ecd595
treeb37c089fe660171581ae1e8c7c6220ba7b269715
parentb447b28c5e434eb949e30985a7c2d49f6aa592fe
re PR fortran/69498 (ICE on disjunct cases with displaced or incomplete embedded statement)

2017-04-10  Nicolas Koenig  <koenigni@student.ethz.ch>
            Paul Thomas  <pault@gcc.gnu.org>

PR fortran/69498
* module.c (gfc_match_submodule): Add error
if function is called in the wrong state.

2017-04-10  Nicolas Koenig  <koenigni@student.ethz.ch>

PR fortran/69498
* gfortran.dg/submodule_unexp.f90: Modified test
to account for new error.
* gfortran.dg/submodule_twice.f90: New Test

Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>
From-SVN: r246826
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_twice.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/submodule_unexp.f90