https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109018
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also from that page: > If multiple declarations of the same template differ in the result of name > lookup, the first such declaration is used That is GCC gets that part correct even while clang and MSVC does not.