[Bug libstdc++/16896] New: [3.4/3.5 Regression] Use of non-reserved names in stl_list.h
peturr02 at ru dot is
gcc-bugzilla@gcc.gnu.org
Fri Aug 6 10:32:00 GMT 2004
In include/bits/stl_list.h:
struct _List_node_base
{
_List_node_base* _M_next; ///< Self-explanatory
_List_node_base* _M_prev; ///< Self-explanatory
static void
swap(_List_node_base& __x, _List_node_base& __y);
void
transfer(_List_node_base * const __first,
_List_node_base * const __last);
void
reverse();
void
hook(_List_node_base * const __position);
void
unhook();
};
The names transfer, hook and unhook don't appear in the C++ standard, and are
not in the implementors namespace. They can therefore clash with user-defined
macros.
--
Summary: [3.4/3.5 Regression] Use of non-reserved names in
stl_list.h
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peturr02 at ru dot is
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16896
More information about the Gcc-bugs
mailing list