Work around GCC 9.0 regression
authorEric Fiselier <eric@efcs.ca>
Wed, 19 Dec 2018 18:58:22 +0000 (18:58 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 19 Dec 2018 18:58:22 +0000 (18:58 +0000)
llvm-svn: 349663

libcxx/test/libcxx/utilities/variant/variant.variant/variant_size.pass.cpp

index a836ef5..c309aaa 100644 (file)
@@ -24,7 +24,8 @@ struct make_variant_imp;
 
 template <size_t ...Indices>
 struct make_variant_imp<std::integer_sequence<size_t, Indices...>> {
-  using type = std::variant<decltype((Indices, char(0)))...>;
+  template <size_t> using AlwaysChar = char;
+  using type = std::variant<AlwaysChar<Indices>...>;
 };
 
 template <size_t N>