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

            Bug ID: 118789
           Summary: [15 Regression] ICE in gfc_add_modify_loc, at
                    fortran/trans.cc:229
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20241218 and 20250203, build the fckit 0.13.2 package, same ICE
with and without LTO:

cd /<<PKGBUILDDIR>>/debian/build-gfortran/src/fckit && /usr/bin/gfortran
-Dfckit_EXPORTS -I/<<PKGBUILDDIR>>/debian/build-gfortran/src/fckit
-I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/debian/build-gfortran/src
-I/<<PKGBUILDDIR>>/debian/build-gfortran/module -I/usr/include/x86_64-linux-gnu
-I/usr/include/x86_64-linux-gnu/eckit
-I/usr/lib/x86_64-linux-gnu/openmpi/include
-I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi
-I/usr/include/x86_64-linux-gnu/eckit/mpi -g -O3 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection
-fcf-protection
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/fckit-0.13.2-1build1 -O3 -DNDEBUG
-funroll-all-loops -finline-functions -J../../module -fPIC -c
/<<PKGBUILDDIR>>/src/fckit/fctest.F90 -o CMakeFiles/fckit.dir/fctest.F90.o
/<<PKGBUILDDIR>>/src/fckit/module/fckit_C_interop.F90:80:31:

   80 |   FCKIT_SUPPRESS_UNUSED(cptr)
      |                               1
internal compiler error: in gfc_add_modify_loc, at fortran/trans.cc:229
0x2f1afe6 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2f30fb3 internal_error(char const*, ...)
        ???:0
0xef41b9 fancy_abort(char const*, int, char const*)
        ???:0
0x10ce661 gfc_trans_block_construct(gfc_code*)
        ???:0
0x105c662 gfc_generate_function_code(gfc_namespace*)
        ???:0
0x10284f1 gfc_generate_module_code(gfc_namespace*)
        ???:0
0xfc17a5 gfc_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

complete build log at
https://launchpadlibrarian.net/775110463/buildlog_ubuntu-plucky-amd64.fckit_0.13.2-1build1_BUILDING.txt.gz

Reply via email to