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

            Bug ID: 117887
           Summary: [15 regression] ICE when building qtwebengine-6.8.1
                    (add_extra_args, at cp/pt.cc:13682)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

```
$ g++ -c host/obj/base/base/base_jumbo_49.ii -std=gnu++20
In file included from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/memory_usage_estimator.h:30,
                 from
./../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/memory_usage_estimator.cc:5,
                 from host/gen/base/base_jumbo_49.cc:12:
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/containers/lru_cache.h:228:12:
warning: ‘annotate’ attribute directive ignored [-Wattributes]
  228 |   KeyIndex index_;
      |            ^~~~~~
In file included from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/containers/flat_map.h:15,
                 from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/feature_list.h:18,
                 from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/threading/platform_thread.h:18,
                 from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/trace_event.h:20,
                 from
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/memory_dump_manager.h:23,
                 from
./../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/memory_allocator_dump.cc:13,
                 from host/gen/base/base_jumbo_49.cc:5:
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/containers/flat_tree.h:
In instantiation of ‘base::internal::flat_tree<Key, GetKeyFromValue,
KeyCompare, Contai
ner>::const_iterator base::internal::flat_tree<Key, GetKeyFromValue,
KeyCompare, Container>::lower_bound(const K&) const [with K = const char*; Key
= std::basic_string_view<char>; GetKey
FromValue = std::identity; KeyCompare = std::less<void>; Container =
std::array<const std::basic_string_view<char>, 53>; const_iterator = const
std::basic_string_view<char>*]’:
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/containers/flat_tree.h:937:27:
  required from ‘bool base::internal::flat_tree<Key, GetKeyFromValue,
KeyCompare, Container>::contains(const K&) const [with K = const char*; Key =
std::basic_string_view<char>; GetKeyFromValue = std::identity; KeyCompare =
std::less<void>; Container = std::array<const std::basic_string_view<char>,
53>]’
  937 |   auto lower = lower_bound(key);
      |                ~~~~~~~~~~~^~~~~
./../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/trace_event/memory_infra_background_allowlist.cc:330:43:
  required from here
  330 |     return kDumpProviderAllowlist.contains(mdp_name);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
../../../../../qtwebengine-everywhere-src-6.8.1/src/3rdparty/chromium/base/containers/flat_tree.h:494:41:
internal compiler error: in add_extra_args, at cp/pt.cc:13682
  494 |   using KeyTypeOrK = std::conditional_t<requires {
      |                                         ^~~~~~~~~~
  495 |     typename key_compare::is_transparent;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |   }, K, key_type>;
      |   ~
0xaaaad109b487 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, std::__va_list*,
diagnostic_t)
        ???:0
0xaaaad0fb45eb internal_error(char const*, ...)
        ???:0
0xaaaad0fa13a7 fancy_abort(char const*, int, char const*)
        ???:0
0xaaaad04b26ff tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad17ef9d3 tsubst_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad18512ff tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad15de157 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad15de5ef tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad15de37b tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad1850ec3 tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad17eb3cf tsubst_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xaaaad1ad85d7 instantiate_decl(tree_node*, bool, bool)
        ???:0
0xaaaad1217543 instantiate_pending_templates(int)
        ???:0
0xaaaad120db6b c_parse_final_cleanups()
        ???:0
0xaaaad21b4067 c_common_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.
See <https://bugs.gentoo.org/> for instructions.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/15/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
--prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/15/include
--datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15
--mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15/man
--infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/15/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 15.0.9999 p,
commit 327cf5e12642fc4d22c9a65971c11a4c6d22aebf' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp
--disable-libada --disable-standard-branch-protection --disable-systemtap
--disable-valgrind-annotations --disable-vtable-verify --disable-libvtv
--with-zstd --without-isl --enable-default-pie --enable-host-pie
--enable-host-bind-now --enable-default-ssp --disable-fixincludes
--with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241202 (experimental)
cde7ce0628f66a5d03cc97c70d4695e6f2acd4db (Gentoo 15.0.9999 p, commit
327cf5e12642fc4d22c9a65971c11a4c6d22aebf)
```

Reply via email to