------- 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" <[EMAIL PROTECTED]> 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