Skip to content
Commit 825e3bb5 authored by Richard Smith's avatar Richard Smith
Browse files

PR46209: properly determine whether a copy assignment operator is

trivial.

We previously took a shortcut by assuming that if a subobject had a
trivial copy assignment operator (with a few side-conditions), we would
always invoke it, and could avoid going through overload resolution.
That turns out to not be correct in the presenve of ref-qualifiers (and
also won't be the case for copy-assignments with requires-clauses
either). Use the same logic for lazy declaration of copy-assignments
that we use for all other special member functions.

Previously committed as c57f8a3a. This
now also includes an extension of LLDB's workaround for handling special
members without the help of Sema to cover copy assignments.
parent ebcbd5ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment