https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97423
Bug ID: 97423 Summary: internal compiler error in gcc-10.2.0/gcc/toplev.c:328 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sumbera at volny dot cz Target Milestone: --- While building recent Firefox using GCC 10.2 (as well as with 9.3) on Solaris Intel I have ran into following internal error: $ /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dom/indexedDB: /usr/gcc/10/bin/g++ -std=gnu++17 -o Unified_cpp_dom_indexedDB0.o -c -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/stl_wrappers -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/system_wrappers -include /builds/psumbera/FIREFOX/config/gcc_hidden.h -fstack-protector-strong -DDEBUG=1 -DOS_POSIX=1 -DOS_SOLARIS=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/builds/psumbera/FIREFOX/dom/indexedDB -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dom/indexedDB -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/ipc/ipdl/_ipdlheaders -I/builds/psumbera/FIREFOX/ipc/chromium/src -I/builds/psumbera/FIREFOX/ipc/glue -I/builds/psumbera/FIREFOX/dom/base -I/builds/psumbera/FIREFOX/dom/storage -I/builds/psumbera/FIREFOX/ipc/glue -I/builds/psumbera/FIREFOX/third_party/sqlite3/src -I/builds/psumbera/FIREFOX/xpcom/build -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/nspr -I/builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/mozilla-config.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -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 -Wno-error=deprecated-copy -Wformat -Wformat-overflow=2 -Werror=implicit-function-declaration -Wno-psabi -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -funwind-tables -Wno-error=shadow -MD -MP -MF .deps/Unified_cpp_dom_indexedDB0.o.pp /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursor.cpp cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ In file included from /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/dom/indexedDB/Key.h:10, from /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursorType.h:11, from /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursor.h:10, from /builds/psumbera/FIREFOX/dom/indexedDB/IDBObjectStore.h:10, from /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursor.cpp:8: /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/dom/indexedDB/IDBResult.h: In instantiation of ‘mozilla::ErrorResult mozilla::dom::indexedDB::detail::IDBError<S>::ExtractErrorResult(SpecialValueMappers ...) [with SpecialValueMappers = {nsresult (*)(const std::integral_constant<mozilla::dom::indexedDB::IDBSpecialValue, mozilla::dom::indexedDB::IDBSpecialValue::Invalid>&)}; mozilla::dom::indexedDB::IDBSpecialValue ...S = {mozilla::dom::indexedDB::IDBSpecialValue::Invalid}]’: /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursor.cpp:54:48: required from ‘void mozilla::dom::IDBTypedCursor<CursorType>::Continue(JSContext*, JS::Handle<JS::Value>, mozilla::ErrorResult&) [with mozilla::dom::IDBCursorType CursorType = mozilla::dom::IDBCursorType::ObjectStore]’ /builds/psumbera/FIREFOX/dom/indexedDB/IDBCursor.h:190:8: required from here /builds/psumbera/FIREFOX/obj-x86_64-pc-solaris2.11/dist/include/mozilla/dom/indexedDB/IDBResult.h:106:26: internal compiler error: Segmentation Fault 106 | return mVariant.match( | ~~~~~~~~~~~~~~^ 107 | [](ErrorResult& aException) { return std::move(aException); }, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 108 | [aSpecialValueMappers...](const SpecialConstant<S>& aSpecialValue) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 109 | return ErrorResult{aSpecialValueMappers(aSpecialValue)}; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 110 | }...); | ~~~~~ 0x17c91ba crash_signal /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/toplev.c:328 0x12929fa tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:12865 0x128ddae tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:19784 0x1285d92 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:19160 0x1285d92 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:18773 0x12868cd tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17840 0x12868cd tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17865 0x1287712 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17840 0x1287712 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17855 0x12869fd tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17840 0x12869fd tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:18174 0x1285a79 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:17840 0x1285a79 instantiate_decl(tree_node*, bool, bool) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:25756 0x12a535b instantiate_pending_templates(int) /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/pt.c:25872 0x11e88da c_parse_final_cleanups() /builds/ulhg/nightly_80/components/gcc10/gcc-10.2.0/gcc/cp/decl2.c:4889 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.