re PR c++/59173 (Alias template in partial specialization finds name from primary template)

PR c++/59173
	* include/ext/pointer.h (pointer_traits<>::rebind<>): Add template
	keyword in nested name.

From-SVN: r205114
This commit is contained in:
Jonathan Wakely 2013-11-20 13:39:33 +00:00 committed by Jonathan Wakely
parent 063d671d59
commit f8c370af2c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-11-20 Jonathan Wakely <jwakely.gcc@gmail.com>
PR c++/59173
* include/ext/pointer.h (pointer_traits<>::rebind<>): Add template
keyword in nested name.
2013-11-20 David Edelsohn <dje.gcc@gmail.com>
* testsuite/17_intro/static.cc: Ignore AIX TOC reload warnings.

View File

@ -580,7 +580,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Up>
using rebind = typename __gnu_cxx::_Pointer_adapter<
typename pointer_traits<_Storage_policy>::rebind<_Up>>;
typename pointer_traits<_Storage_policy>::template rebind<_Up>>;
static pointer pointer_to(typename pointer::reference __r) noexcept
{ return pointer(std::addressof(__r)); }