https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71826
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > This code is valid as I here should not be looked up in the dependent base > class. There is another bug about that already filed That is bug 15272.