jacobwilliams/csv-fortran

f%add([...]) first array entry ignored?

derdrdirk opened this issue · 2 comments

I copied your example for writing a CSV file, but
call f%add(['x','y','z','t']) is writing the x into the row.
My total output is given by:

 "y","z","t","�"
1.000,2.000,3.000,T
4.000,5.000,6.000,F

I am using OSX with gfortran 7.2.0 with the command gfortran main.f90 -L fortran-csv-module/lib/ -lcsv

I can confirm this. It works fine with the intel compiler, so I suspect it is a gfortran compiler bug. I'll look into it.

I think it should be fixed now. It was a gfortran compiler bug, so I added a weird workaround that seemed to make it work. Let me know if there are any other problems.