https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126472

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|13.0                        |---

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
A workaround is to make the elements of the initializer list all non-constant,
e.g.

int n = 42;
const InitList data {
        std::tuple<std::optional<std::vector<int>>, int>(
                std::optional<std::vector<int>>(std::vector<int>(1, 42)),
                n),

        std::tuple<std::optional<std::vector<int>>, int>(
                std::optional<std::vector<int>>(),
                n),
};

Reply via email to