[patch, fortran] PR77972 ICE on broken character continuation with -Wall etc.

Jerry DeLisle jvdelisle@charter.net
Fri Oct 14 15:29:00 GMT 2016


On 10/13/2016 08:18 PM, Steve Kargl wrote:
> On Thu, Oct 13, 2016 at 07:04:04PM -0700, Jerry DeLisle wrote:
>> This patch is straight forward. We were sending bogus locus info to the
>> diagnostics machinery and catch an assert in error,c.
>>
>> The patch avoids doing this.
>>
>> Regression tested on x86-64-linux.
>>
>> OK for trunk?
>>
>
> Yes, but see below.
>
--- snip ---
>>                if (warn_ampersand && in_string == INSTRING_WARN)
>>                  gfc_warning (OPT_Wampersand,
>>                               "Missing %<&%> in continued character "
>
> If this is a "missing '&' in a continued..." and the '&' is
> required by the standard, then why is this just a warning?
>

A long time ago in a far away place we added the -Wampersand to appease the 
empire. ;) I do remember there was a lot of discussion on this so its basically 
an extension. We can revisit this some time perhaps.

Jerry



More information about the Fortran mailing list