[Bug libstdc++/19510] [4.0 regression] Warning using list iterators
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Tue Jan 18 21:46:00 GMT 2005
------- Additional Comments From gdr at integrable-solutions dot net 2005-01-18 21:46 -------
Subject: Re: [4.0 regression] Warning using list iterators
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| > I think your patch is OK and should be applied.
|
| First blush, I agree. Is it 100% safe wrt the ABI? (I remember tricky details
| only about copy constructor and assignment, actually)
Careless addition of constructors or destructors can indeed change an ABI.
However in the specific case at hand, the addition is that of a
non-copy default constructor whose only potential impact is that
of changing a POD to non-POD. However, both _List_iterator and
_List_const_iterator are already non-POD as they have a constructor to
convert from a _List_node_base*.
So the patch is ABI-neutral.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19510
More information about the Gcc-bugs
mailing list