------- Comment #2 from burnus at gcc dot gnu dot org 2010-09-21 06:54 ------- (In reply to comment #1) > Here is a case where we do have to evaluate at run time. So maybe we can not > do what is proposed above.
Well, I understood the request such that one passes a boolean for the 'YES' / 'NO' items. If it cannot be simplified at compile time, one adds (in trans*c) code like: advance = _gfortran_compare_string (3, &"YES", len, &str) == 0; Possibly, one should add a new function like advance = _gfortran_io_yes_no (len, &str, "ADVANCE"); which takes then also into account invalid values. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45715