Workaround GCC bug PR78489 - SFINAE order is not respected.
authorEric Fiselier <eric@efcs.ca>
Thu, 22 Mar 2018 22:32:55 +0000 (22:32 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 22 Mar 2018 22:32:55 +0000 (22:32 +0000)
commita595456731bc404f78ca4fc220a6249cb9a7184d
tree1a2061c13bdcb7425c4905f54b749e5ff460da57
parentadb173314dd65ef9f84e1d22ec1ac4f2582f3031
Workaround GCC bug PR78489 - SFINAE order is not respected.

This patch works around variant test failures which are new to
GCC 8. GCC 8 either doesn't perform SFINAE in lexical order, or
it doesn't halt after encountering the first failure. This
causes hard error to occur instead of substitution failure.

See gcc.gnu.org/PR78489

llvm-svn: 328261
libcxx/include/variant
libcxx/test/std/utilities/variant/variant.variant/variant.ctor/in_place_index_init_list_args.pass.cpp