public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Add workaround to std::variant for Clang bug 31852
@ 2018-03-26 13:13 Jonathan Wakely
  2018-03-26 14:14 ` Jonathan Wakely
  2018-04-05 16:59 ` Jonathan Wakely
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Wakely @ 2018-03-26 13:13 UTC (permalink / raw)
  To: libstdc++, gcc-patches

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-07 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-26 13:13 Add workaround to std::variant for Clang bug 31852 Jonathan Wakely
2018-03-26 14:14 ` Jonathan Wakely
2018-04-07 15:13   ` Gerald Pfeifer
2018-04-05 16:59 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).