public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97423] New: internal compiler error in gcc-10.2.0/gcc/toplev.c:328
@ 2020-10-14 15:19 sumbera at volny dot cz
  2020-10-14 15:23 ` [Bug c++/97423] " jakub at gcc dot gnu.org
  2020-10-14 15:32 ` sumbera at volny dot cz
  0 siblings, 2 replies; 3+ messages in thread
From: sumbera at volny dot cz @ 2020-10-14 15:19 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/97423] internal compiler error in gcc-10.2.0/gcc/toplev.c:328
  2020-10-14 15:19 [Bug c++/97423] New: internal compiler error in gcc-10.2.0/gcc/toplev.c:328 sumbera at volny dot cz
@ 2020-10-14 15:23 ` jakub at gcc dot gnu.org
  2020-10-14 15:32 ` sumbera at volny dot cz
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-10-14 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The ICE is certainly not in toplev.c and I'm pretty sure this is a dup of
PR97358.

*** This bug has been marked as a duplicate of bug 97358 ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/97423] internal compiler error in gcc-10.2.0/gcc/toplev.c:328
  2020-10-14 15:19 [Bug c++/97423] New: internal compiler error in gcc-10.2.0/gcc/toplev.c:328 sumbera at volny dot cz
  2020-10-14 15:23 ` [Bug c++/97423] " jakub at gcc dot gnu.org
@ 2020-10-14 15:32 ` sumbera at volny dot cz
  1 sibling, 0 replies; 3+ messages in thread
From: sumbera at volny dot cz @ 2020-10-14 15:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Petr Sumbera <sumbera at volny dot cz> ---
Created attachment 49373
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49373&action=edit
test case

Just for record. I have tried to prepare test case. Attached is preprocessed
test case. Following command exhibits the same internal error:

/usr/gcc/10/bin/g++ -std=gnu++17 -o Unified_cpp_dom_indexedDB0.o -c  -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    test.cpp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-14 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 15:19 [Bug c++/97423] New: internal compiler error in gcc-10.2.0/gcc/toplev.c:328 sumbera at volny dot cz
2020-10-14 15:23 ` [Bug c++/97423] " jakub at gcc dot gnu.org
2020-10-14 15:32 ` sumbera at volny dot cz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).