--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 39806
Patch to remove special-case for reference_wrapper.
This patch makes it work as desired. We need to fix 3-4 test cases too which
explicitly check for the current behaviour (it's by design, matching
I submitted a defect report, with a proposed change to make the copy + move
constructors say "if f’s target is a <DEL>callable
object passed via</DEL><INS>specialization of</INS> reference_wrapper
or a function pointer."