https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124338 --- Comment #4 from S. Davis Herring <herring at lanl dot gov> --- Well, without it being generic you don't get the error, but yes the wrong overload is still selected (which is in a way worse).