How to repeat: create the file a.f90 with this one line (it is also attached): > call iotk_strcat(string,trim(adjustl(tmpval))//" ",ierr) Run the command: > cpp6 a.f90 -o atmp.f90 The result isn't a valid fortran: > call iotk_strcat(string,trim(adjustl(tmpval)) Braces aren't closed, everything after // is missing. This doesn't happen on linux. How did I find this problem: one fortran project fails to build for this reason. It uses cpp6 to preprocess fortran, and produces broken preprocessed fortran files.
Created attachment 195232 [details] a.f90 Forgot to mention: gcc8 has the same problem.
Added the upstream bug report.
Closing as per explanation in the upstream bug report.