This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51810] internal compiler error
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 14:42:13 +0000
- Subject: [Bug c++/51810] internal compiler error
- Auto-submitted: auto-generated
- References: <bug-51810-4@http.gcc.gnu.org/bugzilla/>
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.