https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104213
--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Obviously the 6131 if (COMPARISON_CLASS_P (*from_p)) 6132 copy_warning (assign, *from_p); doesn't work because we are not dealing with a comparison here.