https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The code is valid, in a class template the injected-class-name can be used without a template argument list, so Bass refers to the current instantiation. In the scope of Deriv the name "Bass" is in scope and refers to "Bass<int>". See http://stackoverflow.com/q/25549652/981959