[Bug fortran/122002] gfortran.dg/pdt_13.f03 etc. FAIL

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 19 17:39:57 GMT 2025


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

--- Comment #6 from anlauf at gcc dot gnu.org ---
'name' is never initialized:

  /* Used to build up the name of the PDT instance. The prefix uses 4
     characters and each KIND parameter 2 more.  Allow 8 of the latter. */
  char name[GFC_MAX_SYMBOL_LEN + 21];

Can one try setting

  name[0] = ’\0’;

or similar?


More information about the Gcc-bugs mailing list