This is the mail archive of the gcc-bugs@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]

[Bug c++/17057] problems disambiguating std::allocator::rebind


------- 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


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