[Bug c++/58538] Injected class-name treated as type-name instead of template-name when used as a template-argument for a template template-parameter

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 26 09:40:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58538

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Possibly related is that G++ treats X as the class template here, not the
injected class name, on contrast to other compilers:

template< template< typename > class T >
class factory { };

template< typename T >
class X
{
      friend class factory< X >;  // ***
};

int main()
{
}



More information about the Gcc-bugs mailing list