summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/shared_ptr_base.h
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-02 18:29:20 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-02 18:29:20 +0000
commita99f13449efc4184977d1a3c970c58226ac61acb (patch)
tree520f5b1bfd6c6b43718523670bb664ada24c3789 /libstdc++-v3/include/bits/shared_ptr_base.h
parentdb171d1fdfd8b11ab15c5e3ea5aa524244419282 (diff)
downloadppe42-gcc-a99f13449efc4184977d1a3c970c58226ac61acb.tar.gz
ppe42-gcc-a99f13449efc4184977d1a3c970c58226ac61acb.zip
PR libstdc++/61036
* include/bits/shared_ptr_base.h (__shared_ptr::__shared_ptr(_Tp1*)): Check the correct type in the static assertion. * testsuite/20_util/shared_ptr/cons/61036.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/shared_ptr_base.h')
-rw-r--r--libstdc++-v3/include/bits/shared_ptr_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/shared_ptr_base.h b/libstdc++-v3/include/bits/shared_ptr_base.h
index 536df017d11..026c5979fae 100644
--- a/libstdc++-v3/include/bits/shared_ptr_base.h
+++ b/libstdc++-v3/include/bits/shared_ptr_base.h
@@ -871,7 +871,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
: _M_ptr(__p), _M_refcount(__p)
{
__glibcxx_function_requires(_ConvertibleConcept<_Tp1*, _Tp*>)
- static_assert( !is_void<_Tp>::value, "incomplete type" );
+ static_assert( !is_void<_Tp1>::value, "incomplete type" );
static_assert( sizeof(_Tp1) > 0, "incomplete type" );
__enable_shared_from_this_helper(_M_refcount, __p, __p);
}
OpenPOWER on IntegriCloud