This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 26 March 2018 at 14:10, Jonathan Wakely wrote: > This makes it possible to use our std::variant with Clang, as well as > some minor tweaks to avoid ADL (so the compiler doesn't waste time > looking in associated namespaces) and adjust whitespace. > > * include/std/variant (__get): Qualify calls to avoid ADL. > (__select_index): Adjust whitespace. > (variant): Add using-declaration to workaround Clang bug. > > Tested powerpc64le-linux, committed to trunk.. I'll backport to > gcc-7-branch too. The Clang bug means that __get is ambiguous (because it thinks the friend declaration is a separate overload) so we also need this change. Tested powerpc64le-linux, committed to trunk.
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |