Compilation error in stdlib_io.f90
Closed this issue · 2 comments
MilanSkocic commented
Description
I've got an error when compiling the stdlib in the io module either with gfortran 10 or gfortran 14 (std=f2008).
The error says:
153 | error stop trim(msgout)
| 1
Error: STOP code at (1) must be a scalar default CHARACTER or INTEGER constant expression
I think that the compilation error might be related to the change in the commit 6439a2c when call error_strop
was replaced with error stop
.
Does anyone have an idea how fix it?
Expected Behaviour
No error.
Version of stdlib
stdlib=* (in fpm.toml)
Platform and Architecture
Windows, Linux
Additional Information
No response
perazz commented
Thank you for reporting @MilanSkocic, I did not realize that some compiler options would cause issues with error stop
MilanSkocic commented
@perazz I just wanna let you know that I also tested with gfortran std=f2018 and it failed too. The issue might be only related to gfortran but I haven't tested other compilers.