This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE: Namespaces, templates, and friends, oh my!
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE: Namespaces, templates, and friends, oh my!
- From: Hyman Rosen <hymie at prolifics dot com>
- Date: Wed, 10 May 2000 11:03:39 -0400
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.