> Can you confirm that the class_optional_1.f90 of the trunk works correctly?
Yes: I have regtested with make -k check-gfortran RUNTESTFLAGS="dg.exp=class_optional* --target_board=unix'{-m32,-m64}'" without failures. The profile I have posted was for the former version of class_optional_2.f90. The profiler I have to use on darwin monitors the codes running, it looks like it missed all the routines which took only a tiny time. Dominique