This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] GSoC: Implement std::experimental::shared_ptr


The copy_ctor_neg testcase fails on AIX.

/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:
In function 'void test02()':
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
error: no matching function for call to 'st
d::experimental::fundamentals_v2::shared_ptr<A
[2]>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<A
[]>&)'
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note: candidate: std::experimental::fundamentals_v2::sha
red_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::weak_ptr<_Tp>&, std::nothrow_t)
[with _Tp = A [2]]
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note:   candidate expects 2 arguments, 1 provided
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:763:7:
note: candidate: template<class _Alloc, class ... _Args>
 std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag,
const _Alloc&, _Args&& ...)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:763:7:
note:   template argument deduction/substitution failed:
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects at least 2 argume
nts, 1 provided
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note: candidate: constexpr std::experimental::fundament
als_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = A [2];
std::nullptr_t = std::nullptr_t]
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note:   no known conversion for argument 1 from 'std::e
xperimental::fundamentals_v2::shared_ptr<A []>' to 'std::nullptr_t'
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:703:2:
note: candidate: template<class _Tp1, class _Del, class>
 std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up,
_Ep>&&)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:703:2:
note:   template argument deduction/substitution failed:
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   'std::experimental::fundamentals_v2
::shared_ptr<A []>' is not derived from 'std::unique_ptr<_Tp, _Dp>'
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:696:2:
note: candidate: template<class _Tp1> std::experimental:
:fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:696:2:
note:   template argument deduction/substitution failed:
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   'std::experimental::fundamentals_v2
::shared_ptr<A []>' is not derived from 'std::auto_ptr<_Up>'
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:691:11:
note: candidate: template<class _Tp1> std::experimental
::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::weak_ptr<_Tp1>&)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:691:11:
note:   template argument deduction/substitution failed
:
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   'std::experimental::fundamentals_v2
::shared_ptr<A []>' is not derived from 'const
std::experimental::fundamentals_v2::weak_ptr<_Tp>'
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note: candidate: template<class _Tp1, class> std::experi
mental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<_Tp1>&&)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note:   template argument deduction/substitution failed:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note: candidate: std::experimental::fundamentals_v2::sha
red_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&&) [with _Tp = A
[2]]
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note:   no known conversion for argument 1 from 'std::ex
perimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&&'
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note: candidate: template<class _Tp1, class> std::experi
mental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp1>&)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note:   template argument deduction/substitution failed:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note: candidate: std::experimental::fundamentals_v2::sha
red_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&) [with _Tp = A
[2]]
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note:   no known conversion for argument 1 from 'std::ex
perimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&'
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:673:2:
note: candidate: template<class _Tp1> std::experimental:
:fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp1>&,
std::experimental::fundamentals_v2::shared_pt
r<_Tp>::element_type*)
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:673:2:
note:   template argument deduction/substitution failed:
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 2 arguments, 1 pr
ovided
In file included from
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/memory:46:0,
                 from
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/tmp/20151113/powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/experimental/bits/shared_ptr.h:669:2:
note: candidate: template<class _Deleter, class _Alloc>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t,
_Deleter, _Alloc)
...

I can provide the pre-processed source file if needed.

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]