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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:15c517049c0d8b6319990445939a69bb36fdc678

commit r12-10253-g15c517049c0d8b6319990445939a69bb36fdc678
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Sep 12 21:28:38 2023 +0100

    libstdc++: Remove non-void static assertions in variant's std::get
[PR111172]

    A void template argument would cause a substitution failure when trying
    to form a reference for the return type, so the function body would
    never be instantiated.

    libstdc++-v3/ChangeLog:

            PR libstdc++/111172
            * include/std/variant (get<T>): Remove !is_void static
            assertions.

    (cherry picked from commit d19bdf8874059457fdfe50a9e14dad8f8b8cecbb)

Reply via email to