https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92267

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Nov 22 12:36:18 2019
New Revision: 278614

URL: https://gcc.gnu.org/viewcvs?rev=278614&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.

Backport from mainline
2019-10-29  Jonathan Wakely  <jwak...@redhat.com>

        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:
   
branches/gcc-9-branch/libstdc++-v3/testsuite/23_containers/deque/types/92267.cc
Modified:
    branches/gcc-9-branch/libstdc++-v3/ChangeLog
    branches/gcc-9-branch/libstdc++-v3/include/bits/stl_deque.h

Reply via email to