This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Infinite compilation!
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Infinite compilation!
- From: Alexander Zvyagin <zvyagin at gamspc7 dot ihep dot su>
- Date: Thu, 27 Jan 2000 17:28:39 +0300 (MSK)
Dear GCC developers,
the attached file can not be compiled under gcc-2.95.2. Compilation time
and memory consumption are infinite.
// gcc-2.95.2 will compile this code
// if you comments any marked line(s).
class A
{
public:
virtual A *f(int n) {} // Comment this!
};
template <int N,class T>
class B : public A
{
public:
A *f(int n) {return new B<N-1,T>;} // Comment this!
};
main(void)
{
B<5,int> b; // Comment this!
}
// End of file //
With best wishes,
Alexander Zvyagin.