The following code gives
5: Internal compiler error.
5: Please submit a full bug report.
5: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
namespace X
{
template <class T> class C
{
template <class T2> friend class C; // Line 5
};
}
It compiles OK when the code is not in a namespace.