[patch, fortran, committed] Fix error caused by running front-end optimizatins after error

Thomas König tk@tkoenig.net
Tue Mar 27 18:48:00 GMT 2018


Hello world,

I have just committed r258900 as obvious on trunk to fix an
out-of-memory error in front-end optimization, which was
caused by gfortran's AST being in an inconsistent state.

I suspect that this will also fix other, as yet unknown
errors.

I will backport to the other affected branches, gcc-7 and gcc-6,
over the next few days.

Regards

	Thomas

2018-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/85084
         * frontend-passes.c (gfc_run_passes): Do not run front-end
         optimizations if a previous error occurred.

2018-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/85084
         * gfortran.dg/matmul_rank_1.f90: New test.
ig25@flaemmli:~/Krempel/MMICE>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matmul_rank_1.f90
Type: text/x-fortran
Size: 283 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180327/6be08d6d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180327/6be08d6d/attachment-0001.bin>


More information about the Fortran mailing list