-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elemental function result must not be allocatable #6
Comments
Dear Gilbert, thank you very much for your interest. I think your are right: this is just a typo that I made also in other codes... a too fast cut/paste. Indeed the set_extension should not be used inside FLAP, but your remark is correct. Later in the morning I will fix this bug. Thank you again. |
Hi Gilbert, I have just fixed the bug. That function is not used into FLAP, but in some other codes and, indeed, the case that extension match is yet never matched, thus it was a real bug never discovered. Thank you very much. See you soon, P.S. I have added as contributor into the wiki, I hope it is ok for you. |
Hi Gilbert, Which compiler are you using? On my Arch Linux only Intel Fortran can build FLAP: gfortran (4.9.2) is not able to handle deferred length character defined into a derived type thus the building fails. On the other hand, Intel has not recognized the erroneous See you soon. |
ifort 15 and gfortran 4.9.2 |
in the 2008 draft on page 314 it is written: http://www.j3-fortran.org/doc/year/10/10-007.pdf |
Hi gilbert, i know the standard. I was just curious why my intel does not Il giorno 20:50 mar 17/feb/2015 brietzke notifications@github.com ha
|
ok.looked again on the code and dragged out the few dependencies from the On Tue, Feb 17, 2015 at 8:59 PM, Stefano Zaghi notifications@github.com
|
Hi gilbert, The dependency from IR_Precision is mandatory: all my codes use it, and I On the other hand, you are right that there are few dependencies on the I am in dubt... however, I seriously consider your request. Thank you very much. |
Dear Stefano,
I just came across the flap code and found it can not compile since not standard conforming:
the function set_extension is declared with the elemental prefix.
But the function result is defined as allocatable which appears to be forbidden according to the fortran-standard (e.g. recent draft of f2008,f2015). A function with an allocatable function result must not be declared elemental.
Also I found that in the case of a matching file-extension the set_extension function result is not getting allocated. Not sure about the intention here: but maybe in case of matching extension newfilename should be assigned the original filename, e.g. like:
if(...)
:
else
newfilename = filename
endif
I apreciate your work anyway.
cheers
Gilbert
The text was updated successfully, but these errors were encountered: