https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116381
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:1e10b3b8825ee398f077500af6ae1f5db180983a commit r15-3065-g1e10b3b8825ee398f077500af6ae1f5db180983a Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Aug 20 16:52:22 2024 +0100 libstdc++: Fix std::variant to reject array types [PR116381] 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.