[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #7 from Jonathan Wakely --- Fixed for 13.3 and 12.4
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 --- Comment #6 from GCC Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:dc0964f43dcee46dcd1843287a541668fd08a4a8 commit r12-10254-gdc0964f43dcee46dcd1843287a541668fd08a4a8 Author: Jonathan Wakely Date: Fri Nov 10 12:21:52 2023 + libstdc++: Add static_assert to std::integer_sequence [PR112473] C++20 allows class types as non-type template parameters, but std::integer_sequence explicitly disallows them. Enforce that. libstdc++-v3/ChangeLog: PR libstdc++/112473 * include/bits/utility.h (integer_sequence): Add static_assert. * testsuite/20_util/integer_sequence/112473.cc: New test. (cherry picked from commit 0953497a81f1e320989b9f2aaa7f56747eddd4a0)
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 --- Comment #5 from GCC Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:f6ed5e0715da7040b04c465424bb33fcb95a5c20 commit r13-8131-gf6ed5e0715da7040b04c465424bb33fcb95a5c20 Author: Jonathan Wakely Date: Fri Nov 10 12:21:52 2023 + libstdc++: Add static_assert to std::integer_sequence [PR112473] C++20 allows class types as non-type template parameters, but std::integer_sequence explicitly disallows them. Enforce that. libstdc++-v3/ChangeLog: PR libstdc++/112473 * include/bits/utility.h (integer_sequence): Add static_assert. * testsuite/20_util/integer_sequence/112473.cc: New test. (cherry picked from commit 0953497a81f1e320989b9f2aaa7f56747eddd4a0)
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 Jonathan Wakely changed: What|Removed |Added Target Milestone|13.3|12.4
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |13.3
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:0953497a81f1e320989b9f2aaa7f56747eddd4a0 commit r14-5347-g0953497a81f1e320989b9f2aaa7f56747eddd4a0 Author: Jonathan Wakely Date: Fri Nov 10 12:21:52 2023 + libstdc++: Add static_assert to std::integer_sequence [PR112473] C++20 allows class types as non-type template parameters, but std::integer_sequence explicitly disallows them. Enforce that. libstdc++-v3/ChangeLog: PR libstdc++/112473 * include/bits/utility.h (integer_sequence): Add static_assert. * testsuite/20_util/integer_sequence/112473.cc: New test.
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 --- Comment #3 from Jonathan Wakely --- Although you couldn't use std::pair as a NTTP until C++20 anyway.
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 --- Comment #2 from Jonathan Wakely --- Ah it changed in C++20, previously it said "T shall be an integral type" so was just UB.
[Bug libstdc++/112473] integer_sequence accepts non-integer types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112473 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-11-10 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed.