https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120049

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
With the original test case, the following eliminates the ICE.

diff --git a/examples/tests_gtk_sup.f90 b/examples/tests_gtk_sup.f90
index 8f8168b..ab47c8d 100644
--- a/examples/tests_gtk_sup.f90
+++ b/examples/tests_gtk_sup.f90
@@ -26,8 +26,8 @@

!==============================================================================

 module tests
-  use gtk_sup
   use, intrinsic :: iso_c_binding
+  use gtk_sup
   use gtk, only: TRUE, FALSE, gtk_init, gtk_label_new, gtk_label_get_text
   use g, only: g_value_init, g_value_unset, g_value_set_int, g_value_get_int,
&
              & g_value_set_double, g_value_get_double, g_value_get_pointer, &

Apparently the order of the use statements matters.

Reply via email to