r277577 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Tue Oct 29 17:14:00 GMT 2019
Author: redi
Date: Tue Oct 29 17:14:55 2019
New Revision: 277577
URL: https://gcc.gnu.org/viewcvs?rev=277577&root=gcc&view=rev
Log:
PR libstdc++/92267 fix ABI change in deque iterators
Defaulting the copy constructor on its first declaration made it change
from user-provided (and non-trivial) to implicitly-defined (and
trivial). This caused an ABI incompatibility between GCC 8 and GCC 9,
where functions taking a deque iterator disagree on the argument passing
convention.
PR libstdc++/92267
* include/bits/stl_deque.h (_Deque_iterator(const _Deque_iterator&)):
Do not define as defaulted.
* testsuite/23_containers/deque/types/92267.cc: New test.
Added:
trunk/libstdc++-v3/testsuite/23_containers/deque/types/92267.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_deque.h
More information about the Libstdc++-cvs
mailing list