Compile of derived-type array allocation is very slow
Thomas Koenig
tkoenig@netcologne.de
Fri Aug 11 17:38:00 GMT 2017
Hi Luke,
> I'm looking for a work-around to some very long compile-times we are
> observing in our codebase. I've isolated the issue to a single allocate
> statement which is allocating an array of derived types. The variable
> I'm allocating is quite complex, containing many additional layers of
> allocatable derived-types. I've created a test case that exposes the
> problem, see below for code.
Wow - this really _is_ a compile-time hog.
I don't know of any workaround to this, I have submitted
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81827 to
track this issue.
Regards
Thomas
More information about the Fortran
mailing list