https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #2) > Why is the compiler even doing overload resolution for std::get<I> if I is > an invalid constant expression?! It's not going to match any overload! This part is now PR 101460