This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Add workaround to std::variant for Clang bug 31852
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Mar 2018 14:10:56 +0100
- Subject: Add workaround to std::variant for Clang bug 31852
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.