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

--- Comment #10 from Sam James <sjames at gcc dot gnu.org> ---
..and
```
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/class.cc:
In function
‘_ZL18finalize_componentP8gfc_exprP10gfc_symbolP13gfc_componentS2_S2_PP8gfc_codeP13gfc_names
pace.part.0’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/class.cc:1150:36:
warning: ‘byte_stride’ may be used uninitialized [-Wmaybe-uninitialized]
 1150 |       byte_stride->attr.artificial = 1;
      |                                    ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/class.cc:1134:26:
note: ‘byte_stride’ was declared here
 1134 |       gfc_symbol *vtab, *byte_stride;
      |                          ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/class.cc:
In function ‘generate_finalization_wrapper’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/class.cc:1799:21:
warning: ‘final’ may be used uninitialized [-Wmaybe-uninitialized]
 1799 |   sub_ns->proc_name = final;

/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/interface.cc:
In function ‘gfc_get_formal_from_actual_arglist’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/interface.cc:5726:21:
warning: ‘s’ may be used uninitialized [-Wmaybe-uninitialized]
 5726 |               s->ts = a->expr->ts;
      |                     ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/interface.cc:5708:15:
note: ‘s’ was declared here
 5708 |   gfc_symbol *s;
      |               ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:
In function ‘gfc_get_intrinsic_function_symbol’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:156:22:
warning: ‘sym’ may be used uninitialized [-Wmaybe-uninitialized]
  156 |   sym->attr.external = 1;
      |                      ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:153:15:
note: ‘sym’ was declared here
  153 |   gfc_symbol *sym;
      |               ^

In function ‘fold_build3_loc’,
    inlined from ‘alloc_scalar_allocatable_subcomponent’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/trans-expr.cc:9244:37,
    inlined from ‘gfc_trans_subcomponent_assign’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/trans-expr.cc:9441:45:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fold-const.cc:14286:26:
warning: ‘tmp’ may be used uninitialized [-Wmaybe-uninitialized]
14286 |   tem = fold_ternary_loc (loc, code, type, op0, op1, op2);
      |                          ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/trans-expr.cc:
In function ‘gfc_trans_subcomponent_assign’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/trans-expr.cc:9220:8:
note: ‘tmp’ was declared here
 9220 |   tree tmp;
      |        ^
In function ‘gfc_get_intrinsic_function_symbol’,
    inlined from ‘specific_intrinsic_symbol’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/trans-intrinsic.cc:4322:47:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:158:29:
warning: ‘sym’ may be used uninitialized [-Wmaybe-uninitialized]
  158 |   sym->attr.always_explicit = 1;
      |                             ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:
In function ‘specific_intrinsic_symbol’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/fortran/intrinsic.cc:153:15:
note: ‘sym’ was declared here
  153 |   gfc_symbol *sym;
      |               ^

```

Reply via email to