------- Comment #4 from jvdelisle at gcc dot gnu dot org 2006-04-13 04:26 ------- I have looked this over. Its a matter of what behavior is acceptable for each type of error we get. My interpretation of your testcase is that we should do a next_record when we detect the error before we do the generate_error if we are in ADVANCE_YES. So if its an error due to an I/O problem such as hardware failure we will just fail out like now. If its a "content of the file" error we do a next_record before going into th error handling code. This will presumably take us past the current line, ready for another read.
I just wonder if this is the universal behavior we should have. Regardless, I will see if I can work up a patch and give it a spin. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27138