Dear Tobias, The following patch prevents the warning to generate a FAIL:
--- /opt/gcc/_clean/gcc/testsuite/gfortran.dg/class_48.f90 2012-02-05 22:03:27.000000000 +0100 +++ /opt/gcc/work/gcc/testsuite/gfortran.dg/class_48.f90 2013-07-01 19:44:06.000000000 +0200 @@ -158,4 +158,6 @@ call test2 () call test3 () call test4 () end +! TODO remove the kludge below after the spurious warning has been fixed. +! { dg-prune-output ".*invokes undefined behavior.*" } Cheers, Dominique