[PR fortran/66528] unbalanced IF/ENDIF with -fmax-errors=1 causes invalid free

2015-06-24 Thread Manuel López-Ibáñez
The problem is that diagnostic_action_after_output tries to delete the active pretty-printer which tries to delete its output_buffer, which is normally dynamically allocated via placement-new, but the output_buffer used by the error_buffer of Fortran is statically allocated. Being statically

Re: [PR fortran/66528] unbalanced IF/ENDIF with -fmax-errors=1 causes invalid free

2015-06-24 Thread Steve Kargl
On Wed, Jun 24, 2015 at 08:36:45PM +0200, Manuel López-Ibáñez wrote: The problem is that diagnostic_action_after_output tries to delete the active pretty-printer which tries to delete its output_buffer, which is normally dynamically allocated via placement-new, but the output_buffer used by