This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Empty error message with long lines


Hi Jerry,

should I still report the bug?

Regards,

Arjen

2009/8/2 Jerry DeLisle <jvdelisle@verizon.net>:
> On 08/02/2009 09:51 AM, Jerry DeLisle wrote:
>>
>> On 08/02/2009 09:28 AM, Janus Weil wrote:
>>>
>>> 2009/8/2 Arjen Markus<arjen.markus895@gmail.com>:
>>>>
>>>> Hello,
>>>>
>>>> I ran into a peculiar bug with gfortran:
>>>>
>>>> program check
>>>> ? ?open( 10, file = 'check.inp', form = 'binary' )
>>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! Comment
>>>> end program
>>>>
>>>> (the comment starts at column 132, but the problem actually occurs in
>>>> a long linje with trailing blanks too)
>>>>
>>>> The output from the compiler is:
>>>>
>>>> check.f90:2.132:
>>>>
>>>>
>>>> ?!
>>>>
>>>> ? 1
>>>> Error: FORM specifier in OPEN statement at (1) has invalid value
>>>> 'binary'
>>>>
>>>> Note that the offending code is being omitted, while for shorter
>>>> lines, the code is visible.
>>>>
>>>> This was on Windows XP/MingW, with gfortran 4.3.2 (4.3.2-tdm-1 for
>>>> MingW)
>>>
>>> Confirmed with current trunk. Can you file a PR in bugzilla?
>>>
>>> Thanks for reporting,
>>> Janus
>>>
>> I don't see this on my local trunk (linux). ?Go ahead and file bug report.
>> ?I will see what I get on Cygwin.
>>
>> Regards,
>>
>> Jerry
>>
>
> OK, I see what this is about. ?Normally we truncate the displayed portion of
> a line that is emitted for an error message. ?In this case the locus of the
> error is the end of the line. We have a number of these issues with error
> locus. ?I have a patch on my trunk now that fixes several of these but not
> this one. ?I will go ahead and submit what I have as a start.
>
> Regards,
>
> Jerry
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]