http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51699
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-29 14:35:18 UTC --- I think there is a front-end bug about this, I'll try to find it. I've encountered it myself when compiling code with Clang and needed to fix code that G++ accepts in order to find names in dependent base classes