------- Comment #4 from fxcoudert at gcc dot gnu dot org 2009-09-03 14:19 ------- I can confirm I can reproduce this bug with an darwin-to-mingw cross-compiler, and running the executable under wine.
I can also confirm that it's about the REWIND statement: if you have already run the test program once, you can recompile it without the WRITE and the REWIND, using the already existing testcase. Then, it passes OK. It's probably some bad counting of position on platforms with HAVE_CRLF. To investigate, it should be possible to build such a faulty linux compiler by forcing HAVE_CRLF to be true. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-09-03 14:19:20 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41168