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

            Bug ID: 114467
           Summary: f951: internal compiler error: Segmentation fault
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thomas.kalscheuer at geo dot uu.se
  Target Milestone: ---

I use a system with dual Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz cpus, CentOS
Linux 7 and gfortran v. 13.2.0

According to gcc -v, gcc was configured with the options "Configured with:
../gcc-13.2.0/configure --enable-languages=c,c++,fortran"

By compiling a fortran code with 
gfortran -O2 -march=native -mtune=native -malign-data=cacheline
-finline-functions -std=f2018 -ffree-form -ffree-line-length-none -pedantic
-Wsurprising -Wopenmp-simd -Wvector-operation-performance -ftree-vectorize
-ftree-vectorizer-verbose=2 -fopt-info -fopenmp -I/usr/include
-I/usr/include/hdf5/serial/ -freport-bug -save-temps -x f95-cpp-input -DRMT -c
code.f90 -o code.o
I get the following error message:
f951: internal compiler error: Segmentation fault
0xd29d7f crash_signal
        ../../gcc-13.2.0/gcc/toplev.cc:314
0x7c2a65 gfc_expression_rank(gfc_expr*)
        ../../gcc-13.2.0/gcc/fortran/resolve.cc:5643
0x7c2c14 gfc_op_rank_conformable(gfc_expr*, gfc_expr*)
        ../../gcc-13.2.0/gcc/fortran/resolve.cc:5676
0x709e9c eval_intrinsic
        ../../gcc-13.2.0/gcc/fortran/arith.cc:1674
0x781cfc match_level_4
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:636
0x781cfc match_and_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:693
0x781d66 match_or_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:722
0x781e76 match_equiv_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:765
0x781f88 match_level_5
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:811
0x7810e4 gfc_match_expr(gfc_expr**)
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:870
0x78132b match_primary
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:165
0x78132b match_level_1
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:211
0x78132b match_mult_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:267
0x7815c8 match_add_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:356
0x78189c match_level_2
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:480
0x781a56 match_level_3
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:551
0x781b90 match_level_4
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:599
0x781b90 match_and_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:693
0x781d66 match_or_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:722
0x781e76 match_equiv_operand
        ../../gcc-13.2.0/gcc/fortran/matchexp.cc:765
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make: *** [code.o] Error 1

Compilation with
gfortran -g -std=f2018 -ffree-form -ffree-line-length-none -pedantic -Wall
-I/usr/include -I/usr/include/hdf5/serial/ -freport-bug -save-temps -x
f95-cpp-input -DRMT -c code.f90 -o code.o
leads to the same error message.

Note, that inclusion of the -save-temps option has not led to any *.* file
being generated by the compiler.

Reply via email to