Bug 79330 - gfortran 5.4.0/6.3.0/7.0.0 misinterpret type of character literal bind(C,name=...)

Damian Rouson damian@sourceryinstitute.org
Wed Feb 1 23:21:00 GMT 2017


 



On February 1, 2017 at 2:47:44 PM, Steve Kargl (sgk@troutmask.apl.washington.edu(mailto:sgk@troutmask.apl.washington.edu)) wrot
>  
> Bummer. An inelegant workaround seems to be
>  
> #define PREFIX "_gfortran_"
>  

Thanks!  This workaround is actually perfect for our intended use case.  Given
that the “name=…”: argument has to be a compile-time constant, I was going to 
have to use C preprocessor conditional statements to decide between various 
“character(len=*), parameter :: PREFIX=...” statements anyway so I might as well 
just do the definition in the preprocessor too rather than doing it in Fortran.  

Damian



More information about the Fortran mailing list