fortran-lang / fpm

Fortran Package Manager (fpm)
https://fpm.fortran-lang.org
MIT License
844 stars 95 forks source link

Release candidate fpm.F90 uses gfortran-specific backslash line continuations #1023

Closed sscalpone closed 2 months ago

sscalpone commented 2 months ago

Description

I pulled fpm.F90 from the Fpm version v0.10.1 pre-release.

The fpm.F90 source uses backslashes as continuations for a few lines. This behavior seems to be unique to gfortran and then only when preprocessing is enabled.

I used wget to pull this file:

https://github.com/fortran-lang/fpm/releases/download/current/fpm.F90

See the backslashes:

28745     call run('git archive '//ref//' &
28746         --format='//archive_format// &
28747         add_files//' \
28748         -o '//destination, \
28749         echo=verbose, \
28750         exitstat=stat)
28751     if (stat /= 0) then
28752       call fatal_error(error, "Error packing '"//source//"'."); return
28753     end if
28754   end

Expected Behaviour

The code would use standard fortran continuation lines.

Version of fpm

Fpm version v0.10.1

Platform and Architecture

Linux

Additional Information

% cksum fpm.F90
3410678574 1553216 fpm.F90
henilp105 commented 2 months ago

fixed in #1024.