[Bug fortran/54618] [OOP] wrong-code with CLASS(...), INTENT(OUT) -- and OPTIONAL or ALLOCATABLE
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 25 14:20:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54618
--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-25 14:19:59 UTC ---
Created attachment 28269
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28269
OPTIOAL: Draft patch + test case
I have attached a patch which fixes some of the issues with OPTIONAL and CLASS.
The file also contains a test case. Remaining issues with that test case: one
wrong result ("T" instead of "F") and a couple of segmentation faults.
TODO:
- Fix those issues
- Fix CLASS(t), ALLOCATABLE, INTENT(OUT) for arrays (cf. comment 0)
- Check whether there are more issues with intent(out) - or with OPTIONAL, e.g.
with allocatable/pointer or ELEMENTAL. PR 50981 might give some inspiration
what else could be wrong.
More information about the Gcc-bugs
mailing list