public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold
@ 2021-07-22 17:12 marxin at gcc dot gnu.org
  2021-07-22 17:13 ` [Bug libstdc++/101583] " marxin at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-22 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101583
           Summary: [12 Regression] error: use of deleted function when
                    building gold
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: redi at gcc dot gnu.org
  Target Milestone: ---

Happens for the current binutils master:

$ g++ 12.ii -c -m32
In file included from /usr/include/c++/12/unordered_set:46,
                 from ../../gold/system.h:68,
                 from ../../gold/gold.h:35,
                 from ../../gold/ehframe.cc:23:
/usr/include/c++/12/bits/hashtable.h: In instantiation of
‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash,
_Unused, _RehashPolicy, _Traits>::_Hashtable(const _Hash&, const _Equal&, const
allocator_type&) [with _Key = int; _Value = int; _Alloc = std::allocator<int>;
_ExtractKey = std::__detail::_Identity; _Equal =
gold::Output_merge_data::Merge_data_eq; _Hash =
gold::Output_merge_data::Merge_data_hash; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _RehashPolicy =
std::__detail::_Prime_rehash_policy; _Traits =
std::__detail::_Hashtable_traits<true, true, true>; std::_Hashtable<_Key,
_Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy,
_Traits>::allocator_type = std::allocator<int>]’:
/usr/include/c++/12/bits/hashtable.h:1148:32:   required from
‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash,
_Unused, _RehashPolicy, _Traits>::_Hashtable(std::_Hashtable<_Key, _Value,
_Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy,
_Traits>::size_type, const _Hash&, const _Equal&, const allocator_type&) [with
_Key = int; _Value = int; _Alloc = std::allocator<int>; _ExtractKey =
std::__detail::_Identity; _Equal = gold::Output_merge_data::Merge_data_eq;
_Hash = gold::Output_merge_data::Merge_data_hash; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _RehashPolicy =
std::__detail::_Prime_rehash_policy; _Traits =
std::__detail::_Hashtable_traits<true, true, true>; std::_Hashtable<_Key,
_Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy,
_Traits>::size_type = unsigned int; std::_Hashtable<_Key, _Value, _Alloc,
_ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy,
_Traits>::allocator_type = std::allocator<int>]’
/usr/include/c++/12/bits/unordered_set.h:149:9:   required from
‘std::unordered_set<_Value, _Hash, _Pred,
_Alloc>::unordered_set(std::unordered_set<_Value, _Hash, _Pred,
_Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&)
[with _Value = int; _Hash = gold::Output_merge_data::Merge_data_hash; _Pred =
gold::Output_merge_data::Merge_data_eq; _Alloc = std::allocator<int>;
std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type = unsigned int;
std::unordered_set<_Value, _Hash, _Pred, _Alloc>::hasher =
gold::Output_merge_data::Merge_data_hash; std::unordered_set<_Value, _Hash,
_Pred, _Alloc>::key_equal = gold::Output_merge_data::Merge_data_eq;
std::unordered_set<_Value, _Hash, _Pred, _Alloc>::allocator_type =
std::allocator<int>]’
../../gold/merge.h:283:7:   required from here
/usr/include/c++/12/bits/hashtable.h:487:42: error: use of deleted function
‘std::_Enable_special_members<false, true, true, true, true, true,
std::__detail::_Hash_node_base>::_Enable_special_members()’
In file included from /usr/include/c++/12/bits/hashtable.h:36,
                 from /usr/include/c++/12/unordered_set:46,
                 from ../../gold/system.h:68,
                 from ../../gold/gold.h:35,
                 from ../../gold/ehframe.cc:23:
/usr/include/c++/12/bits/enable_special_members.h:99:10: note:
‘std::_Enable_special_members<false, true, true, true, true, true,
std::__detail::_Hash_node_base>::_Enable_special_members()’ is implicitly
deleted because the default definition would be ill-formed:
/usr/include/c++/12/bits/enable_special_members.h:99:10: error: use of deleted
function ‘constexpr std::_Enable_default_constructor<false,
_Tag>::_Enable_default_constructor() [with _Tag =
std::__detail::_Hash_node_base]’
/usr/include/c++/12/bits/enable_special_members.h:112:15: note: declared here

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
@ 2021-07-22 17:13 ` marxin at gcc dot gnu.org
  2021-07-22 17:13 ` marxin at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-22 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 51196
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51196&action=edit
GCC 12 pre-processed source file

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
  2021-07-22 17:13 ` [Bug libstdc++/101583] " marxin at gcc dot gnu.org
@ 2021-07-22 17:13 ` marxin at gcc dot gnu.org
  2021-07-22 17:15 ` redi at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-22 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 51197
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51197&action=edit
GCC 11 pre-processed source file

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
  2021-07-22 17:13 ` [Bug libstdc++/101583] " marxin at gcc dot gnu.org
  2021-07-22 17:13 ` marxin at gcc dot gnu.org
@ 2021-07-22 17:15 ` redi at gcc dot gnu.org
  2021-07-22 18:40 ` cvs-commit at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2021-07-22 17:15 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.0
   Last reconfirmed|                            |2021-07-22
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, I need to call the non-default constructor of the _Enable_special_members
base in all non-default constructors of _Hashtable.

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-07-22 17:15 ` redi at gcc dot gnu.org
@ 2021-07-22 18:40 ` cvs-commit at gcc dot gnu.org
  2021-07-22 18:41 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-22 18:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:8ed6cfbbee74ec9e03f2558b9c36f61dd7d4dcfd

commit r12-2476-g8ed6cfbbee74ec9e03f2558b9c36f61dd7d4dcfd
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jul 22 18:49:57 2021 +0100

    libstdc++: Fix non-default constructors for hash containers [PR101583]

    When I added the new mixin to _Hashtable, I forgot to explicitly
    construct it in each non-default constructor. That means you can't
    use any constructors unless all three of the hash function, equality
    function, and allocator are all default constructible.

    libstdc++-v3/ChangeLog:

            PR libstdc++/101583
            * include/bits/hashtable.h (_Hashtable): Replace mixin with
            _Enable_default_ctor. Construct it explicitly in all
            non-forwarding, non-defaulted constructors.
            * testsuite/23_containers/unordered_map/cons/default.cc: Check
            non-default constructors can be used.
            * testsuite/23_containers/unordered_set/cons/default.cc:
            Likewise.

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-07-22 18:40 ` cvs-commit at gcc dot gnu.org
@ 2021-07-22 18:41 ` redi at gcc dot gnu.org
  2021-10-13 23:50 ` arjan at linux dot intel.com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2021-07-22 18:41 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed!

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-07-22 18:41 ` redi at gcc dot gnu.org
@ 2021-10-13 23:50 ` arjan at linux dot intel.com
  2021-10-14  8:02 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: arjan at linux dot intel.com @ 2021-10-13 23:50 UTC (permalink / raw)
  To: gcc-bugs

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

Arjan van de Ven <arjan at linux dot intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arjan at linux dot intel.com

--- Comment #6 from Arjan van de Ven <arjan at linux dot intel.com> ---
the original bug was backported to the stable 11 branch...
.. should the fix be as well ?

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-10-13 23:50 ` arjan at linux dot intel.com
@ 2021-10-14  8:02 ` redi at gcc dot gnu.org
  2021-10-14  8:25 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2021-10-14  8:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, yes, I thought I'd included this in my backports. Doing it now ...

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-10-14  8:02 ` redi at gcc dot gnu.org
@ 2021-10-14  8:25 ` cvs-commit at gcc dot gnu.org
  2021-10-14  8:26 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-14  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:3bf56cdf5ec5e07ea34e6be0110ab8fc76641d87

commit r11-9153-g3bf56cdf5ec5e07ea34e6be0110ab8fc76641d87
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jul 22 18:49:57 2021 +0100

    libstdc++: Fix non-default constructors for hash containers [PR101583]

    When I added the new mixin to _Hashtable, I forgot to explicitly
    construct it in each non-default constructor. That means you can't
    use any constructors unless all three of the hash function, equality
    function, and allocator are all default constructible.

    libstdc++-v3/ChangeLog:

            PR libstdc++/101583
            * include/bits/hashtable.h (_Hashtable): Replace mixin with
            _Enable_default_ctor. Construct it explicitly in all
            non-forwarding, non-defaulted constructors.
            * testsuite/23_containers/unordered_map/cons/default.cc: Check
            non-default constructors can be used.
            * testsuite/23_containers/unordered_set/cons/default.cc:
            Likewise.

    (cherry picked from commit 8ed6cfbbee74ec9e03f2558b9c36f61dd7d4dcfd)

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-10-14  8:25 ` cvs-commit at gcc dot gnu.org
@ 2021-10-14  8:26 ` redi at gcc dot gnu.org
  2021-10-14 16:45 ` thiago at kde dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2021-10-14  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks for noticing I missed it.

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2021-10-14  8:26 ` redi at gcc dot gnu.org
@ 2021-10-14 16:45 ` thiago at kde dot org
  2021-11-26 16:34 ` cvs-commit at gcc dot gnu.org
  2023-07-07  7:39 ` vital.had at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: thiago at kde dot org @ 2021-10-14 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

Thiago Macieira <thiago at kde dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiago at kde dot org

--- Comment #10 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Jonathan Wakely from comment #9)
> Thanks for noticing I missed it.

Well, I had to clear C++'s good name when Arjan complained that he couldn't
understand what the compiler was telling him about <false, true, true, true,
true...> :)

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2021-10-14 16:45 ` thiago at kde dot org
@ 2021-11-26 16:34 ` cvs-commit at gcc dot gnu.org
  2023-07-07  7:39 ` vital.had at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-26 16:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:5c86e63cb0383a38ec3dea24e9b3fe2f6e312057

commit r10-10305-g5c86e63cb0383a38ec3dea24e9b3fe2f6e312057
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Jul 20 15:20:41 2021 +0100

    libstdc++: fix is_default_constructible for hash containers [PR 100863]

    The recent change to _Hashtable_ebo_helper for this PR broke the
    is_default_constructible trait for a hash container with a non-default
    constructible allocator. That happens because the constructor needs to
    be user-provided in order to initialize the member, and so is not
    defined as deleted when the type is not default constructible.

    By making _Hashtable derive from _Enable_special_members we can ensure
    that the default constructor for the std::unordered_xxx containers is
    deleted when it would be ill-formed. This makes the trait give the
    correct answer.

    This backport to gcc-10 includes the fix for PR 101583.

    Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

    libstdc++-v3/ChangeLog:

            PR libstdc++/100863
            * include/bits/hashtable.h (_Hashtable): Conditionally delete
            default constructor by deriving from _Enable_default_constructor.
            Construct that base-class explicitly in all non-forwarding,
            non-defaulted constructors.
            * testsuite/23_containers/unordered_map/cons/default.cc: New test.
            * testsuite/23_containers/unordered_set/cons/default.cc: New test.

    (cherry picked from commit 89ec3b67dbe856a447d068b053bc19559f136f43)

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

* [Bug libstdc++/101583] [12 Regression] error: use of deleted function when building gold
  2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2021-11-26 16:34 ` cvs-commit at gcc dot gnu.org
@ 2023-07-07  7:39 ` vital.had at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: vital.had at gmail dot com @ 2023-07-07  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

Sergey Fedorov <vital.had at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vital.had at gmail dot com

--- Comment #12 from Sergey Fedorov <vital.had at gmail dot com> ---
I am getting similar errors with 12.3.0:

:info:build   /opt/local/bin/g++-mp-12 -o
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/inspector/string-util.o
../deps/v8/src/inspector/string-util.cc '-DNODE_OPENSSL_CONF_NAME=nodejs_conf'
'-DICU_NO_USER_DATA_OVERRIDE' '-DV8_GYP_BUILD'
'-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-DV8_TARGET_ARCH_PPC'
'-DV8_TARGET_ARCH_PPC_BE' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_MACOS'
'-DV8_EMBEDDER_STRING="-node.10"' '-DENABLE_DISASSEMBLER'
'-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT'
'-DV8_ATOMIC_OBJECT_FIELD_WRITES' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS'
'-DV8_USE_SIPHASH' '-DV8_SHARED_RO_HEAP' '-DV8_WIN64_UNWINDING_INFO'
'-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_USE_ZLIB'
'-DV8_ENABLE_TURBOFAN' '-DV8_ENABLE_WEBASSEMBLY'
'-DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS' '-DV8_ALLOCATION_FOLDING'
'-DV8_ALLOCATION_SITE_TRACKING' '-DV8_SCRIPTORMODULE_LEGACY_LIFETIME'
'-DV8_ADVANCED_BIGINT_ALGORITHMS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/zlib-inc
-I/opt/local/libexec/openssl3/include/openssl -I../deps/v8 -I../deps/v8/include
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/obj/gen/inspector-generated-output-root
-I../deps/v8/third_party/inspector_protocol
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/obj/gen
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/obj/gen/generate-bytecode-output-root
-I../deps/v8/third_party/zlib -I../deps/v8/third_party/zlib/google  -O3
-gdwarf-2 -fstrict-aliasing -mmacosx-version-min=10.6 -Wall -Wendif-labels -W
-Wno-unused-parameter -fno-rtti -fno-exceptions -fno-strict-aliasing
-fpermissive -isystem/opt/local/include/LegacySupport -MMD -MF
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/.deps//opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_nodejs20/nodejs20/work/node-v20.4.0/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/inspector/string-util.o.d.raw
  -c
:info:build ../deps/v8/src/inspector/injected-script.cc: In constructor
'v8_inspector::InjectedScript::InjectedScript(v8_inspector::InspectedContext*,
int)':
:info:build ../deps/v8/src/inspector/injected-script.cc:389:48: error: use of
deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred,
_Alloc>::unordered_map() [with _Key = v8_inspector::String16; _Tp =
std::vector<int>; _Hash = std::hash<v8_inspector::String16>; _Pred =
std::equal_to<v8_inspector::String16>; _Alloc = std::allocator<std::pair<const
v8_inspector::String16, std::vector<int> > >]'
:info:build   389 |     : m_context(context), m_sessionId(sessionId) {}
:info:build       |                                                ^
:info:build In file included from
/opt/local/include/gcc12/c++/unordered_map:47,
:info:build                  from
../deps/v8/src/inspector/injected-script.h:35:
:info:build /opt/local/include/gcc12/c++/bits/unordered_map.h:141:7: note:
'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with
_Key = v8_inspector::String16; _Tp = std::vector<int>; _Hash =
std::hash<v8_inspector::String16>; _Pred =
std::equal_to<v8_inspector::String16>; _Alloc = std::allocator<std::pair<const
v8_inspector::String16, std::vector<int> > >]' is implicitly deleted because
the default definition would be ill-formed:
:info:build   141 |       unordered_map() = default;
:info:build       |       ^~~~~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/unordered_map.h:141:7: error: use
of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal,
_Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key =
v8_inspector::String16; _Value = std::pair<const v8_inspector::String16,
std::vector<int> >; _Alloc = std::allocator<std::pair<const
v8_inspector::String16, std::vector<int> > >; _ExtractKey =
std::__detail::_Select1st; _Equal = std::equal_to<v8_inspector::String16>;
_Hash = std::hash<v8_inspector::String16>; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _RehashPolicy =
std::__detail::_Prime_rehash_policy; _Traits =
std::__detail::_Hashtable_traits<true, false, true>]'
:info:build In file included from
/opt/local/include/gcc12/c++/unordered_map:46:
:info:build /opt/local/include/gcc12/c++/bits/hashtable.h:531:7: note:
'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash,
_Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key =
v8_inspector::String16; _Value = std::pair<const v8_inspector::String16,
std::vector<int> >; _Alloc = std::allocator<std::pair<const
v8_inspector::String16, std::vector<int> > >; _ExtractKey =
std::__detail::_Select1st; _Equal = std::equal_to<v8_inspector::String16>;
_Hash = std::hash<v8_inspector::String16>; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _RehashPolicy =
std::__detail::_Prime_rehash_policy; _Traits =
std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted
because the default definition would be ill-formed:
:info:build   531 |       _Hashtable() = default;
:info:build       |       ^~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/hashtable.h:531:7: error: use of
deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey,
_Equal, _Hash, _RangeHash, _Unused, _Traits>::_Hashtable_base() [with _Key =
v8_inspector::String16; _Value = std::pair<const v8_inspector::String16,
std::vector<int> >; _ExtractKey = std::__detail::_Select1st; _Equal =
std::equal_to<v8_inspector::String16>; _Hash =
std::hash<v8_inspector::String16>; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _Traits =
std::__detail::_Hashtable_traits<true, false, true>]'
:info:build In file included from
/opt/local/include/gcc12/c++/bits/hashtable.h:35:
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1674:7: note:
'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash,
_RangeHash, _Unused, _Traits>::_Hashtable_base() [with _Key =
v8_inspector::String16; _Value = std::pair<const v8_inspector::String16,
std::vector<int> >; _ExtractKey = std::__detail::_Select1st; _Equal =
std::equal_to<v8_inspector::String16>; _Hash =
std::hash<v8_inspector::String16>; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; _Traits =
std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted
because the default definition would be ill-formed:
:info:build  1674 |       _Hashtable_base() = default;
:info:build       |       ^~~~~~~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1674:7: error:
use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value,
_ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_Hash_code_base()
[with _Key = v8_inspector::String16; _Value = std::pair<const
v8_inspector::String16, std::vector<int> >; _ExtractKey =
std::__detail::_Select1st; _Hash = std::hash<v8_inspector::String16>;
_RangeHash = std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; bool __cache_hash_code = true]'
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h: In
instantiation of 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp,
true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp =
std::hash<v8_inspector::String16>]':
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1261:7:  
required from here
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1178:49:
error: use of deleted function 'std::hash<v8_inspector::String16>::hash()'
:info:build  1178 |       _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) :
_Tp() { }
:info:build       |                                                 ^~~~~
:info:build In file included from
/opt/local/include/gcc12/c++/bits/unique_ptr.h:38,
:info:build                  from /opt/local/include/gcc12/c++/memory:75,
:info:build                  from
../deps/v8/src/inspector/injected-script.h:34:
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:102:12: note:
'std::hash<v8_inspector::String16>::hash()' is implicitly deleted because the
default definition would be ill-formed:
:info:build   102 |     struct hash : __hash_enum<_Tp>
:info:build       |            ^~~~
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:102:12: error:
no matching function for call to 'std::__hash_enum<v8_inspector::String16,
false>::__hash_enum()'
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:83:7: note:
candidate: 'std::__hash_enum<_Tp, <anonymous>
>::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp =
v8_inspector::String16; bool <anonymous> = false]'
:info:build    83 |       __hash_enum(__hash_enum&&);
:info:build       |       ^~~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:83:7: note:  
candidate expects 1 argument, 0 provided
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:102:12: error:
'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp =
v8_inspector::String16; bool <anonymous> = false]' is private within this
context
:info:build   102 |     struct hash : __hash_enum<_Tp>
:info:build       |            ^~~~
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:84:7: note:
declared private here
:info:build    84 |       ~__hash_enum();
:info:build       |       ^
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1261:7: note:
'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash,
_Unused, __cache_hash_code>::_Hash_code_base() [with _Key =
v8_inspector::String16; _Value = std::pair<const v8_inspector::String16,
std::vector<int> >; _ExtractKey = std::__detail::_Select1st; _Hash =
std::hash<v8_inspector::String16>; _RangeHash =
std::__detail::_Mod_range_hashing; _Unused =
std::__detail::_Default_ranged_hash; bool __cache_hash_code = true]' is
implicitly deleted because the default definition would be ill-formed:
:info:build  1261 |       _Hash_code_base() = default;
:info:build       |       ^~~~~~~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1261:7: error:
use of deleted function 'std::__detail::_Hashtable_ebo_helper<1,
std::hash<v8_inspector::String16>, true>::~_Hashtable_ebo_helper()'
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1175:12: note:
'std::__detail::_Hashtable_ebo_helper<1, std::hash<v8_inspector::String16>,
true>::~_Hashtable_ebo_helper()' is implicitly deleted because the default
definition would be ill-formed:
:info:build  1175 |     struct _Hashtable_ebo_helper<_Nm, _Tp, true>
:info:build       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/gcc12/c++/bits/hashtable_policy.h:1175:12:
error: use of deleted function 'std::hash<v8_inspector::String16>::~hash()'
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:102:12: note:
'std::hash<v8_inspector::String16>::~hash()' is implicitly deleted because the
default definition would be ill-formed:
:info:build   102 |     struct hash : __hash_enum<_Tp>
:info:build       |            ^~~~
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:102:12: error:
'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp =
v8_inspector::String16; bool <anonymous> = false]' is private within this
context
:info:build /opt/local/include/gcc12/c++/bits/functional_hash.h:84:7: note:
declared private here
:info:build    84 |       ~__hash_enum();
:info:build       |       ^

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

end of thread, other threads:[~2023-07-07  7:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 17:12 [Bug libstdc++/101583] New: [12 Regression] error: use of deleted function when building gold marxin at gcc dot gnu.org
2021-07-22 17:13 ` [Bug libstdc++/101583] " marxin at gcc dot gnu.org
2021-07-22 17:13 ` marxin at gcc dot gnu.org
2021-07-22 17:15 ` redi at gcc dot gnu.org
2021-07-22 18:40 ` cvs-commit at gcc dot gnu.org
2021-07-22 18:41 ` redi at gcc dot gnu.org
2021-10-13 23:50 ` arjan at linux dot intel.com
2021-10-14  8:02 ` redi at gcc dot gnu.org
2021-10-14  8:25 ` cvs-commit at gcc dot gnu.org
2021-10-14  8:26 ` redi at gcc dot gnu.org
2021-10-14 16:45 ` thiago at kde dot org
2021-11-26 16:34 ` cvs-commit at gcc dot gnu.org
2023-07-07  7:39 ` vital.had at gmail dot com

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).