fortran: Fix function arg types for class objects
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 6 Sep 2020 16:33:04 +0000 (18:33 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 6 Sep 2020 16:33:43 +0000 (18:33 +0200)
gcc/fortran/ChangeLog

* trans-types.c (gfc_get_ppc_type): Fix function arg types.

gcc/fortran/trans-types.c

index d38aa2865ae85a56064345aa384ee66e5b80aeac..a05633e827c5cb602f157f53c88a657ec3dfebb5 100644 (file)
@@ -2435,7 +2435,7 @@ gfc_get_ppc_type (gfc_component* c)
   else
     t = void_type_node;
 
-  return build_pointer_type (build_function_type_list (t, NULL_TREE));
+  return build_pointer_type (build_function_type (t, NULL_TREE));
 }