// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include #include int main() { using variant_t = std::variant; constexpr auto variant_v = variant_t{std::in_place_index_t<0>{}, short{}}; constexpr auto tuple = std::make_tuple(variant_v); constexpr std::tuple tuple_v{variant_v}; }