http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60448
Bug ID: 60448 Summary: swap_ranges does not use ADL correctly Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: public at alisdairm dot net Created attachment 32286 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32286&action=edit Demonstrate swap_ranges does not find swap via ADL The attached program does not correctly use ADL to find the 'swap' member implemented inside the tagged local class in C++11/C++1y builds. It is not expected to compile in C++03 or earlier dialects. The problem compiles and runs as expected on Clang 3.4 with libc++ in both C++11 and C++1y modes.