1 Jul 2006 07:18
[patch,libgfortan] Fis PR27704 Incorrect runtime error on multiple OPEN
Jerry DeLisle <jvdelisle <at> verizon.net>
2006-07-01 05:18:48 GMT
2006-07-01 05:18:48 GMT
:ADDPATCH fortran: After reviewing the thread referenced in the PR and reviewing the standards, this patch fixes this PR by doing two things. 1. On multiple opens, status="scratch" is allowed as an extension. This is accomplished by using notify_std. 2. On multiple opens, status="old" is allowed as permitted by the f95 standard. Finally as an enhancement, I have modified notify standard to be consistent with generate_error and show the locus of the warning or error as appropriate. The attached test case is given. Also, fmt_l.f90 will be modified to accomodate the output of the locus. NOTE: There is some overlap between this patch and FX RFC library cleanup patch. I was looking at FX patch after I finished this one and noticed the proposed move notify_std prototype to libgfortran.h. FX, if you prefer I wait for yours to be OKed and committed, I will redo this patch to line up, otherwise, I can commit this one first. Let me know. Regression tested. OK for trunk and 4.1 later? Regards, Jerry(Continue reading)
RSS Feed