https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672
--- Comment #2 from Sean Murthy <s.murthy at outlook dot com> --- Created attachment 58526 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58526&action=edit Compiler output for the repro Produced with GCC 14.1. static_asserts adjusted (negations where it fails incorrectly) such that program compiles successfully. g++ -v -save-temps -std=c++20 -Wall -Wextra -pedantic -pedantic-errors -Werror=pedantic ..\src\main.cpp