http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47723
--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-03 21:18:14 UTC --- Actually, I think it's unclear. 318 had to do with elaborated type specifiers, for which we explicitly say that the lookup is done "ignoring any non-type names that have been declared."