http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51810
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-01-10 Ever Confirmed|0 |1 --- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 14:42:13 UTC --- Reduced testcase for the 4.6 branch: template<typename _Alloc> struct allocator_traits { template<typename _Tp> static typename _Tp::pointer _S_pointer_helper(_Tp*); typedef decltype(_S_pointer_helper((_Alloc*)0)) __pointer; }; namespace std __attribute__ ((__visibility__ ("default"))) { template<typename> struct allocator; typedef std::allocator<int> _Alloc; typedef typename allocator_traits<_Alloc>::template rebind_traits<_Sp_cd_type> _Alloc_traits; } ./cc1plus -quiet -std=c++0x t.3.ii t.3.ii: In instantiation of ‘allocator_traits<std::allocator<int> >’: t.3.ii:8:46: instantiated from here t.3.ii:3:53: error: no matching function for call to ‘allocator_traits<std::allocator<int> >::_S_pointer_helper(std::allocator<int>*)’ t.3.ii:3:53: note: candidate is: in dependent_type_p, at cp/pt.c:18102 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.