Jerry,
I was using the current gcc 4.1 branch so I already had the fixes to
PR libgfortran/26464 and PR libgfortran/26423 applied as well as the
proposed fix for PR26499. I suspect I must be see yet another end of file
bug in gfortran. I am currently building the gcc trunk to make sure the
fix isn't in that already.
Jack