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

            Bug ID: 116913
           Summary: [15 regression] ICE when building firefox-130.0.1
                    (tree check: expected var_decl or function_decl or
                    field_decl or type_decl or concept_decl or
                    template_decl, have using_decl in
                    cp_parser_alias_declaration, at cp/parser.cc:22826)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

```
 g++ -c ./Unified_cpp_widget3.ii -O3 -fno-rtti -pthread -fno-sized-deallocation
-fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno
-fno-exceptions -pipe -fPIC -march=native -fno-semantic-interposition
-mtls-dialect=gnu2 -fdiagnostics-color=always -Wa,-O2 -Wa,-mtune=znver4 -pipe
-Werror=strict-aliasing -Werror=lto-type-mismatch -Werror=odr
-frecord-gcc-switches -fno-lto -O3 -fomit-frame-pointer -funwind-tables -Wall
-Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits
-Wunreachable-code -Wno-invalid-offsetof -Wcomma-subscript -Wvolatile
-Wno-deprecated-enum-enum-conversion -Wduplicated-cond -Wimplicit-fallthrough
-Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations
-Wno-error=array-bounds -Wno-error=coverage-mismatch
-Wno-error=free-nonheap-object -Wno-multistatement-macros
-Wno-error=class-memaccess -Wformat -Wformat-security -Wformat-overflow=2
-Wno-psabi -Wno-error=builtin-macro-redefined
In file included from Unified_cpp_widget3.cpp:110:
/var/tmp/portage/www-client/firefox-130.0.1/work/firefox-130.0.1/widget/nsPrinterCUPS.cpp:18:48:
internal compiler error: tree check: expected var_decl or function_decl or
field_decl or type_decl or concept_decl or template_decl, have using_decl in
cp_parser_alias_declaration, at cp/parser.cc:22826
   18 | using MarginDouble = mozilla::gfx::MarginDouble;
      |                                                ^
0x55b2246b653a internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/diagnostic-global-context.cc:517
0x55b223f8bfd7 tree_check_failed(tree_node const*, char const*, int, char
const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/tree.cc:9003
0x55b222da6291 template_info_decl_check(tree_node const*, char const*, int,
char const*) [clone .part.0] [clone .lto_priv.0]
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/cp-tree.h:662
0x55b222cb2177 template_info_decl_check(tree_node const*, char const*, int,
char const*)
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/cp-tree.h:649
0x55b225238837 cp_parser_alias_declaration
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/parser.cc:22826
0x55b224937507 cp_parser_declaration
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/parser.cc:15821
0x55b2251b8959 cp_parser_toplevel_declaration
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/parser.cc:15842
0x55b2251b8959 cp_parser_translation_unit
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/parser.cc:5309
0x55b2251b8959 c_parse_file()
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/cp/parser.cc:51958
0x55b22518739f c_common_parse_file()
       
/usr/src/debug/sys-devel/gcc-15.0.0_pre20240929/gcc-15-20240929/gcc/c-family/c-opts.cc:1337
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/x86_64-pc-linux-gnu/15/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.0_pre20240929/work/gcc-15-20240929/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-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 Hardened
15.0.0_pre20240929 p13' --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 --disable-libada --enable-cet
--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
bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240929 (experimental) (Gentoo Hardened 15.0.0_pre20240929
p13)
```

Reply via email to