[patch,libgfortran] PR28335 flush() / write() statement on closed units
Jerry DeLisle
jvdelisle@verizon.net
Thu Jul 27 06:36:00 GMT 2006
Jerry DeLisle wrote:
> FX Coudert wrote:
>>> 2006-07-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>>>
>>> PR libgfortran/258335
>>> * close.c (st_close): Add error when UNIT does not exist.
>>> * file_pos.c (st_flush): Add error when UNIT does not exist.
>>
>> Looks OK to me.
>>
>> Now that we have a dg-shoudfail directive, what about testcases for
>> these two runtime error messages?
>>
>> FX
>>
> Will do!
>
> Thanks,
>
> Jerry
>
I see dg-shouldfail is not committed to 4.1 branch. I will commit the patch and
query Janis on status.
ERROR: gfortran.dg/no_unit_error_2.f90 -Os : unknown dg option: dg-shouldfail 2
{UNIT is not open before FLUSH} for " dg-shouldfail 2 "UNIT is not open before
FLUSH" "
Test cases will follow when able.
Regards,
Jerry
More information about the Gcc-patches
mailing list