https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97128
--- Comment #2 from Fedor Alekseev <feodor.alexeev+gcc at gmail dot com> --- Also my initial claim about c++20 was wrong, gcc 10+ generates the error when provided with -std=c++2a switch. Still there is a problem in c++17 mode.