This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error when using friends inside templates inside namespace g++ 2.95.2
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: Internal compiler error when using friends inside templates inside namespace g++ 2.95.2
- From: Or Tal <ORTAL at trivnet dot com>
- Date: Sat, 16 Sep 2000 19:32:28 +0300
- Cc: Tal Yalon <tal at trivnet dot com>, Shvat Shaked <shvat at trivnet dot com>
The following generates an internal compiler error on line 3
namespace NAM {
template <class T> class Handle {
template <class U> friend class Handle; // <----------- it dies
here.
};
}
main()
{
}
compiled using "g++ y.cpp -o y"
ser:ortal ~/tmp >g++ -v
Reading specs from
/usr/local/pkg/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)