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

            Bug ID: 118234
           Summary: ICE when building VSS-24.0.0
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

This only happens with GCC 12 for me (13/14/15 are fine). First time filing a
"real" Ada bug so let me know if I need to mangle the files or provide more
information.

```
$ x86_64-pc-linux-gnu-gcc-12 -c -x ada -gnat2022 -gnatec=GNAT-TEMP-000003.TMP
-gnatem=GNAT-TEMP-000004.TMP
./testsuite/json/test_json_buffered_pull_reader.adb
+===========================GNAT BUG DETECTED==============================+
| 12.4.1 20241219 (x86_64-pc-linux-gnu) GCC error:                         |
| in gnat_to_gnu, at ada/gcc-interface/trans.cc:6933                       |
| Error detected at test_json_buffered_pull_reader.adb:18:9                |
| Compiling ./testsuite/json/test_json_buffered_pull_reader.adb            |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

./testsuite/json/test_json_buffered_pull_reader.adb
source/text/vss.ads
source/json/vss-json.ads
source/text/vss-strings.ads
source/text/vss-characters.ads
source/text/vss-unicode.ads
source/text/vss-locales.ads
source/text/implementation/vss-implementation.ads
source/text/implementation/vss-implementation-referrers.ads
source/text/implementation/vss-implementation-strings.ads
source/text/implementation/vss-implementation-string_handlers.ads
source/text/implementation/vss-implementation-fnv_hash.ads
source/text/implementation/vss-implementation-string_vectors.ads
source/text/vss-string_vectors.ads
source/text/vss-strings-cursors.ads
source/text/vss-strings-cursors-markers.ads
source/text/vss-strings-cursors-iterators.ads
source/text/vss-strings-cursors-iterators-characters.ads
source/text/vss-strings-cursors-iterators-grapheme_clusters.ads
source/text/vss-strings-cursors-iterators-lines.ads
source/text/vss-strings-cursors-iterators-words.ads
source/json/vss-json-pull_readers.ads
source/json/vss-json-streams.ads
source/json/vss-json-streams-cursors.ads
source/json/vss-json-pull_readers-buffered.ads
testsuite/json/tests_json_streams.ads
testsuite/json/test_json_buffered_pull_reader-test_mark_reset.adb
testsuite/common/test_support.ads
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/work/gcc-14-20241116/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-objc-gc --enable-languages=c,c++,d,objc,obj-c++,fortran,ada
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 14.2.1_p20241116 p3' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --enable-libada
--enable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --with-isl
--disable-isl-version-check --enable-default-pie --enable-host-pie
--enable-host-bind-now --enable-default-ssp --disable-fixincludes
--with-build-config=bootstrap-cet
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20241116 (Gentoo 14.2.1_p20241116 p3)
```

Reply via email to