ICE for egcs/g++ egcs-2.93.00 19990111
Theodore Papadopoulo
Theodore.Papadopoulo@sophia.inria.fr
Fri Jan 15 14:18:00 GMT 1999
gcc version egcs-2.93.00 19990111
The following code snippet triggers an ICE:
double f(double);
typedef double (*M)(double);
class A {
public:
template <const M n> void g(); // this const triggers the bug.
};
class B: public A {
public:
void g() { A::g<f>(); }
};
remove the const of the marked line and the bug disappears.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
More information about the Gcc-bugs
mailing list