Tobias, The previous class_optional_2.f90 runs after your commit, but it takes ~168s (so it may have run with the previous patch also, but I was not patient enough to see it). The culprits are given by the following profile:
+ 100.0%, start, a.out | + 100.0%, main, a.out | | + 100.0%, MAIN__, a.out | | | + 25.5%, a3ac1.2085, a.out | | | | 7.2%, s2elem_t.2178, a.out | | | | 7.0%, s2elem.2184, a.out | | | + 25.5%, a1a.2151, a.out | | | | 15.3%, s2elem_t2.2175, a.out | | | + 24.5%, a1a1.2168, a.out | | | | 14.2%, s2elem_t.2178, a.out | | | + 12.2%, a3a.2097, a.out | | | | 7.1%, s2elem_t2.2175, a.out | | | + 12.2%, a3a1.2110, a.out | | | | 7.1%, s2elem_t.2178, a.out Dominique