[Bug fortran/50288] FAIL: gfortran.dg/class_45b.f03

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 5 19:53:00 GMT 2011


--- Comment #13 from janus at gcc dot gnu.org 2011-09-05 19:52:53 UTC ---
Ok, since class_45{a,b} is not really a run-time test, I think the best
solution would be to just convert it to "dg-do link":

Index: class_45b.f03
--- class_45b.f03       (revision 178551)
+++ class_45b.f03       (working copy)
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do link }
 ! { dg-additional-sources class_45a.f03 }
 ! PR 50227: [4.7 Regression] [OOP] ICE-on-valid with allocatable class

I assume this should get rid of the errors. Can anyone confirm that? (Since I
do not see the failures, I can not check it myself.)

One could do the same with class_4{a,b,c}, since this one also does not contain
any actual run-time checking (but was committed to check for a compile-time

If I get a confirmation the the above patch fixes the errors, I will commit it
as obvious.

More information about the Gcc-bugs mailing list