OSDN Git Service

* arith.c (hollerith2representation): Fix for -Wc++-compat.
[pf3gnuchains/gcc-fork.git] / gcc / fortran / interface.c
index f2ad4f6..724d662 100644 (file)
@@ -795,7 +795,7 @@ count_types_test (gfc_formal_arglist *f1, gfc_formal_arglist *f2)
 
   /* Build an array of integers that gives the same integer to
      arguments of the same type/rank.  */
-  arg = gfc_getmem (n1 * sizeof (arginfo));
+  arg = XCNEWVEC (arginfo, n1);
 
   f = f1;
   for (i = 0; i < n1; i++, f = f->next)