https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46283
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=98939 Keywords| |wrong-code --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the problem is which foo is the right foo here should it be looked up not based on a-> but on the current class. I think the P1787R6 C++ paper clarifies this.