]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix uninitialized reads for pdt_13.f03 etc. [PR122002]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 26 Sep 2025 06:30:07 +0000 (07:30 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 26 Sep 2025 06:30:07 +0000 (07:30 +0100)
commit947b22d9d0622f4a1bf7476f76f17b0d48201c4e
tree4877349f91301c881496d0748ea55878e1d4ed6c
parentd6ee89a65bd98b14940245ec79814ae3d38b0121
Fortran: Fix uninitialized reads for pdt_13.f03 etc. [PR122002]

2025-09-26  Harald Anlauf  <anlauf@gcc.gnu.org>

gcc/fortran
PR fortran/122002
* decl.cc (gfc_get_pdt_instance): Initialize 'instance' to NULL
and set 'kind_value' to zero before calling gfc_extract_int.
* primary.cc (gfc_match_rvalue): Intitialize 'ctr_arglist' to
NULL and test for default values if gfc_get_pdt_instance
returns NULL.
gcc/fortran/decl.cc
gcc/fortran/primary.cc