https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102270
Bug ID: 102270 Summary: std::tuple<>::swap missing constexpr specifier Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- #include <tuple> constexpr bool b = [] { std::tuple<> x, y; x.swap(y); return true; }(); https://godbolt.org/z/Gac17hjen