[Patch, fortran] PR69498 ICE on unexpected Submodule

Nicolas Koenig koenigni@student.ethz.ch
Mon Apr 10 18:00:00 GMT 2017


Hello again,

I forgot to add the test case this patch fixes and to give Paul the 
credit. Attached the new test case.

Nicolas

New & improved changelog:

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


On 04/10/2017 06:53 PM, Nicolas Koenig wrote:
> Hello everyone,
>
> Dominique send me this patch written by Paul some time ago. For some 
> reason it was never committed, so here we go :)
>
> Ok for trunk?
>
> Nicolas
>
> Regression tested for x86_64-pc-linux-gnu.
>
> Changelog:
> 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
>                 PR fortran/69498
>                 * module.c (gfc_match_submodule): Add error
>                 if function is called in the wrong state.
>
> 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
>                 PR fortran/69498
>                 * gfortran.dg/submodule_unexp.f90: Modified test
>                 to account for new error.
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: submodule_twice.f90
Type: text/x-fortran
Size: 212 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170410/2f74863c/attachment.bin>


More information about the Fortran mailing list