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

            Bug ID: 68825
           Summary: testsuite/experimental/memory/shared_ptr/cons/copy_cto
                    r_neg.cc fails to compile on powerpc64
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wschmidt at gcc dot gnu.org
                CC: dje.gcc at gmail dot com, jwakely.gcc at gmail dot com,
                    seurer at linux dot vnet.ibm.com, youfan.noey at gmail dot 
com
  Target Milestone: ---
              Host: powerpc64*-*-linux*
            Target: powerpc64*-*-linux*
             Build: powerpc64*-*-linux*

The libstdc++ test case
testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc was added in
r230300.  It has never compiled cleanly for powerpc64*-linux-gnu.  Here are the
diagnostics:


/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memor
y/shared_ptr/cons/copy_ctor_neg.cc -std=gnu++1y -fno-diagnostics-show-caret
-fdi
agnostics-color=never ./libtestc++.a -Wl,--gc-sections
-L/home/wschmidt/gcc/buil
d/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/filesystem/.
libs -lm -m64 -o ./copy_ctor_neg.exe
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:
In function 'void test02()':
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
error: no matching function for call to
'std::experimental::fundamentals_v2::shared_ptr<A
[2]>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<A []>&)'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp =
A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note:   candidate expects 2 arguments, 1 provided
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstd
c++-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&& ...)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:763:7:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects at least 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note: candidate: constexpr
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t)
[with _Tp = A [2]; std::nullptr_t = std::nullptr_t]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'std::nullptr_t'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstd
c++-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>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:703:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/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
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:696:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   'std::experimental::fundamental
s_v2::shared_ptr<A []>' is not derived from 'std::auto_ptr<_Up>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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>&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:691:11:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/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
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note: candidate: template<class _Tp1, class>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<_Tp1>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&&) [with _Tp = A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&&'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note: candidate: template<class _Tp1, class>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp1>&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&) [with _Tp = A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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_ptr<_Tp>::element_type*)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:673:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:669:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 3 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:665:2:
note: candidate: template<class _Deleter>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t,
_Deleter)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:665:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:661:2:
note: candidate: template<class _Tp1, class _Deleter, class _Alloc>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*,
_Deleter, _Alloc)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:661:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:657:2:
note: candidate: template<class _Tp1, class _Deleter>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*,
_Deleter)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:657:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:654:11:
note: candidate: template<class _Tp1>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:654:11:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:651:17:
note: candidate: constexpr
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr() [with _Tp = A
[2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:651:17:
note:   candidate expects 0 arguments, 1 provided
compiler exited with status 1
output is:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:
In function 'void test02()':
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
error: no matching function for call to
'std::experimental::fundamentals_v2::shared_ptr<A
[2]>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<A []>&)'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp =
A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:772:7:
note:   candidate expects 2 arguments, 1 provided
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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&& ...)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:763:7:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects at least 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note: candidate: constexpr
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t)
[with _Tp = A [2]; std::nullptr_t = std::nullptr_t]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:706:17:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'std::nullptr_t'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:703:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/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
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:696:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/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
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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>&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:691:11:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/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
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note: candidate: template<class _Tp1, class>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<_Tp1>&&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:687:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&&) [with _Tp = A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:683:7:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&&'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note: candidate: template<class _Tp1, class>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp1>&)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:680:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note: candidate:
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(const
std::experimental::fundamentals_v2::shared_ptr<_Tp>&) [with _Tp = A [2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:676:7:
note:   no known conversion for argument 1 from
'std::experimental::fundamentals_v2::shared_ptr<A []>' to 'const
std::experimental::fundamentals_v2::shared_ptr<A [2]>&'
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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_ptr<_Tp>::element_type*)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:673:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/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)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:669:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 3 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:665:2:
note: candidate: template<class _Deleter>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(std::nullptr_t,
_Deleter)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:665:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   candidate expects 2 arguments, 1 provided
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:661:2:
note: candidate: template<class _Tp1, class _Deleter, class _Alloc>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*,
_Deleter, _Alloc)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:661:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:657:2:
note: candidate: template<class _Tp1, class _Deleter>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*,
_Deleter)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:657:2:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:654:11:
note: candidate: template<class _Tp1>
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr(_Tp1*)
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:654:11:
note:   template argument deduction/substitution failed:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
note:   mismatched types '_Tp1*' and
'std::experimental::fundamentals_v2::shared_ptr<A []>'
In file included from
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/memory:46:0,
                 from
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:23:
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:651:17:
note: candidate: constexpr
std::experimental::fundamentals_v2::shared_ptr<_Tp>::shared_ptr() [with _Tp = A
[2]]
/home/wschmidt/gcc/build/gcc-mainline-test3/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/experimental/bits/shared_ptr.h:651:17:
note:   candidate expects 0 arguments, 1 provided

XFAIL: experimental/memory/shared_ptr/cons/copy_ctor_neg.cc (test for excess
errors)
Excess errors:
/home/wschmidt/gcc/gcc-mainline-test3/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44:
error: no matching function for call to
'std::experimental::fundamentals_v2::shared_ptr<A
[2]>::shared_ptr(std::experimental::fundamentals_v2::shared_ptr<A []>&)'

UNRESOLVED: experimental/memory/shared_ptr/cons/copy_ctor_neg.cc compilation
failed to produce executable
extra_tool_flags are:
  -include bits/stdc++.h

Reply via email to