[LLVMbugs] [Bug 8334] New: Wrong template parameter is used for default copy constructor of template class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 7 17:56:21 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8334
Summary: Wrong template parameter is used for default copy
constructor of template class
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In the attached example stl::list is redefined in different namespace with
different allocator.
Auto-generated copy constructor has wrong allocator template parameter and
fails in STL code:
In file included from /usr/include/c++/4.2/list:69:
/usr/include/c++/4.2/bits/stl_list.h:1179:30: error: invalid operands to binary
expression ('_Node_alloc_type'
(aka 'my_alloc<std::_List_node<unsigned short> >') and
'_Node_alloc_type')
if (_M_get_Node_allocator() != __x._M_get_Node_allocator())
~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list