https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116381
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:3b8a67b0cfc072f027eab24fb72d48d10cc890b4 commit r14-10636-g3b8a67b0cfc072f027eab24fb72d48d10cc890b4 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Aug 20 16:52:22 2024 +0100 libstdc++: Fix std::variant to reject array types [PR116381] For the backport, rejecting array types is only done in strict modes. libstdc++-v3/ChangeLog: PR libstdc++/116381 * include/std/variant (variant): Fix conditions for static_assert to match the spec. * testsuite/20_util/variant/types_neg.cc: New test. (cherry picked from commit 1e10b3b8825ee398f077500af6ae1f5db180983a)