This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19510] [4.0 regression] Warning using list iterators
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2005 21:46:06 -0000
- Subject: [Bug libstdc++/19510] [4.0 regression] Warning using list iterators
- References: <20050118201125.19510.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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