This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17057] problems disambiguating std::allocator::rebind
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 04:57:42 -0000
- Subject: [Bug c++/17057] problems disambiguating std::allocator::rebind
- References: <20040817040042.17057.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-17 04:57 -------
It looks like you missed something obvious (and ICC did also):
template<typename _Tp, typename _Cp>
typedef _Tp value_type;
typedef _Cp policy_type;
typedef __gnu_cxx::__mt_alloc<value_type, policy_type> allocator_type;
typedef allocator_type::rebind<value2_type>::other rebind_type;
allocator_type is dependent so how can any compiler know that allocator_type::rebind is a template
and that allocator_type::rebind<value2_type>::other names a typename.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17057