[PATCH] PR fortran/68283 -- remove a rogue gfc_internal_error()

Jerry DeLisle jvdelisle@charter.net
Wed Nov 11 19:20:00 GMT 2015


On 11/11/2015 10:34 AM, Steve Kargl wrote:
> This probably falls under the "obviously correct" moniker.
> It has been built and tested on i386-*-freebsd.  OK to commit?
> 
> The patch removes a gfc_internal_error().  I suspect that it
> was originally put into gfortran to cover "correctly written
> valid Fortran code cannot possibly ever hit this line of 
> code; so, it must be an internal error to reach this line".
> The code in PR 68283 is not valid Fortran.  A number of error
> messages are spewed by gfortran prior to hitting this line of code.
> The patch simply removes the gfc_internal_error(), which allows
> gfortran to exit gracefully.
> 
> 2015-11-11  Steven G. Kargl  <kargl@gcc.gnu.org>
> 
> 	PR fortran/68283
> 	* primary.c (gfc_variable_attr): Remove a gfc_internal_error().
> 

OK Steve,

Jerry



More information about the Fortran mailing list