https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084
--- Comment #3 from Allan Jensen <linux at carewolf dot com> --- -v output: Using built-in specs. COLLECT_GCC=/opt/gcc/bin/g++-12 Target: x86_64-pc-linux-gnu Configured with: ../configure --enable-languages=c,c++ --prefix=/opt/gcc --program-suffix=-12 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220117 (experimental) (GCC) COLLECT_GCC_OPTIONS='-MMD' '-MF' 'obj/third_party/libgav1/libgav1/loop_restoration_info.o.d' '-D' 'USE_UDEV' '-D' 'USE_AURA=1' '-D' 'USE_NSS_CERTS=1' '-D' 'USE_OZONE=1' '-D' 'OFFICIAL_BUILD' '-D' 'TOOLKIT_QT' '-D' '_FILE_OFFSET_BITS=64' '-D' '_LARGEFILE_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-D' 'NO_UNWIND_TABLES' '-D' 'NDEBUG' '-D' 'NVALGRIND' '-D' 'DYNAMIC_ANNOTATIONS_ENABLED=0' '-D' 'LIBGAV1_MAX_BITDEPTH=10' '-D' 'LIBGAV1_THREADPOOL_USE_STD_MUTEX' '-D' 'LIBGAV1_ENABLE_LOGGING=0' '-D' 'LIBGAV1_PUBLIC=' '-I' 'gen' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src' '-fno-ident' '-fno-strict-aliasing' '--param=ssp-buffer-size=4' '-fstack-protector' '-Wno-unknown-pragmas' '-Wno-parentheses' '-Wno-sign-compare' '-Wstringop-overflow=0' '-Wno-stringop-overread' '-Wno-psabi' '-Wno-multichar' '-Wno-format-zero-length' '-fno-unwind-tables' '-fno-asynchronous-unwind-tables' '-fPIC' '-pipe' '-pthread' '-m64' '-O2' '-fno-omit-frame-pointer' '-g1' '-fvisibility=hidden' '-Wno-unused-local-typedefs' '-Wno-maybe-uninitialized' '-Wno-deprecated-declarations' '-fno-delete-null-pointer-checks' '-Wno-comment' '-Wno-packed-not-aligned' '-Wno-dangling-else' '-Wno-missing-field-initializers' '-Wno-unused-parameter' '-O2' '-fdata-sections' '-ffunction-sections' '-std=gnu++14' '-fvisibility-inlines-hidden' '-Wno-narrowing' '-Wno-attributes' '-Wno-class-memaccess' '-Wno-subobject-linkage' '-Wno-invalid-offsetof' '-Wno-return-type' '-Wno-deprecated-copy' '-c' '-o' 'obj/third_party/libgav1/libgav1/loop_restoration_info.o' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'obj/third_party/libgav1/libgav1/' /opt/gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.1/cc1plus -quiet -v -I gen -I ../../../../../../qtwebengine/src/3rdparty/chromium -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src -imultiarch x86_64-linux-gnu -MMD obj/third_party/libgav1/libgav1/loop_restoration_info.d -MF obj/third_party/libgav1/libgav1/loop_restoration_info.o.d -MQ obj/third_party/libgav1/libgav1/loop_restoration_info.o -D_GNU_SOURCE -D_REENTRANT -D USE_UDEV -D USE_AURA=1 -D USE_NSS_CERTS=1 -D USE_OZONE=1 -D OFFICIAL_BUILD -D TOOLKIT_QT -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D NO_UNWIND_TABLES -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D LIBGAV1_MAX_BITDEPTH=10 -D LIBGAV1_THREADPOOL_USE_STD_MUTEX -D LIBGAV1_ENABLE_LOGGING=0 -D LIBGAV1_PUBLIC= ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/loop_restoration_info.cc -quiet -dumpdir obj/third_party/libgav1/libgav1/ -dumpbase loop_restoration_info.cc -dumpbase-ext .cc -m64 -mtune=generic -march=x86-64 -g1 -O2 -O2 -Wno-unknown-pragmas -Wno-parentheses -Wno-sign-compare -Wstringop-overflow=0 -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comment -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -Wno-narrowing -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -std=gnu++14 -version -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fno-omit-frame-pointer -fvisibility=hidden -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections -fvisibility-inlines-hidden --param=ssp-buffer-size=4 -o - | as -v -I gen -I ../../../../../../qtwebengine/src/3rdparty/chromium -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src --gdwarf-5 --64 -o obj/third_party/libgav1/libgav1/loop_restoration_info.o GNU assembler version 2.36.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.36.1 GNU C++14 (GCC) version 12.0.1 20220117 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.1 20220117 (experimental), GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: gen ../../../../../../qtwebengine/src/3rdparty/chromium ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src /opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../include/c++/12.0.1 /opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../include/c++/12.0.1/x86_64-pc-linux-gnu /opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../include/c++/12.0.1/backward /opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include /usr/local/include /opt/gcc/include /opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. GNU C++14 (GCC) version 12.0.1 20220117 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.1 20220117 (experimental), GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 42a6808a38133804a81fe40953dea7b6 In file included from ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/loop_restoration_info.h:28, from ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/loop_restoration_info.cc:15: ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/utils/dynamic_buffer.h: In instantiation of ‘bool libgav1::DynamicBuffer<T>::Resize(size_t) [with T = libgav1::RestorationUnitInfo; size_t = long unsigned int]’: ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/loop_restoration_info.cc:89:44: required from here ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/utils/dynamic_buffer.h:40:19: internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1, at cp/init.c:3792 40 | buffer_.reset(new (std::nothrow) T[size]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 0x8a12eb tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.c:8702 0x6f06b9 tree_operand_check_code(tree_node*, tree_code, int, char const*, int, char const*) ../../gcc/tree.h:3950 0x6f06b9 build_new_1 ../../gcc/cp/init.c:3792 0xa5c8f1 build_new(unsigned int, vec<tree_node*, va_gc, vl_embed>**, tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int, int) ../../gcc/cp/init.c:4002 0xb4a6ad tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:20387 0xb750ca tsubst_copy_and_build_call_args ../../gcc/cp/pt.c:19761 0xb48c88 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:20508 0xb5d33f tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:19316 0xb5ed6b tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18329 0xb5e484 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18301 0xb5e4ec tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18658 0xb5c048 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18287 0xb5c048 instantiate_body ../../gcc/cp/pt.c:26239 0xb5d080 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.c:26532 0xb813d3 instantiate_pending_templates(int) ../../gcc/cp/pt.c:26611 0xa3ba28 c_parse_final_cleanups() ../../gcc/cp/decl2.c:5097 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report.