[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1107136: mwe2 (gfortran: 14.2.0-1 internal compiler error on arm64/PinePhone with -W(maybe-)uninitialized)



hi again,

Here's an alternative minimal working example:

----------------------------------------------------------------------
$ cat mwe2.f90 integer function f(x)
  real, intent(in) :: x(:)
  f = size(x)
end function

$ gfortran -c -Wuninitialized mwe2.f90 -o mwe2.o
during GIMPLE pass: early_uninit
mwe2.f90:4:12:

    4 | end function
      |            ^
internal compiler error: Segmentation fault
0xffffxxxx229b __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0xffffxxxx237b __libc_start_main_impl
        ../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
----------------------------------------------------------------------

and the same with '-Wmaybe-uninitialized'.

Cheers
Boud


Reply to: