This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Fix unqualified call to 'ref' inside shared_ptr(unique_ptr<U, D>)
ClosedPublic

Authored by logan-5 on Feb 8 2020, 12:56 PM.

Details

Summary

This prevents unintended ADL: https://gcc.godbolt.org/z/EHw3Gy

This issue was mentioned as an addendum in https://bugs.llvm.org/show_bug.cgi?id=44398.

Thanks to @Quuxplusone for the test case and filing the bug.

Diff Detail

Event Timeline

logan-5 created this revision.Feb 8 2020, 12:56 PM
ldionne accepted this revision.Feb 20 2020, 9:23 AM

Thanks for the patch!

This revision is now accepted and ready to land.Feb 20 2020, 9:23 AM
This revision was automatically updated to reflect the committed changes.