egcs-971225 on alphaev56-dec-osf4.0b with -O2 bug report
David Binderman
davidb@msi-uk.com
Fri Jan 9 02:23:00 GMT 1998
Hello there,
The following code produces internal compiler error for egcs-971225 on
alphaev56-dec-osf4.0b when compiled with -O2. -O flag is ok, so
I have a workaround.
template <class S, class T> class B;
template <class S, class T>
class A {
public:
A(const B<S,T>&);
~A();
};
template <class S, class T>
class B {
public:
inline A<S,T> first() const;
};
template <class S, class T>
inline A<S,T> B<S,T>::first() const {
A<S,T> bert = A<S,T>(*this);
return bert;
}
void
f( B<int,int> *_map)
{
A<int, int> * fred
= new A<int,int> (_map->first());
}
Regards
David C Binderman MSc BSc (Hons) +44 171 971 8765
contracting at Mobile Systems International in the Docklands, London, England
To write code without using Purify, where available, is merely professionally
irresponsible.
More information about the Gcc-bugs
mailing list