TESTCASE: STL's equal: Internal compiler error.
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Tue May 26 07:43:00 GMT 1998
On Wed, 25 Mar 1998, Stefan Eggers wrote:
> Just found out the STL's equal template triggers an internal error
> in egcs dated 980221.
I found that Stefan's problem still exists with egcs-2.91.33 19980526.
/sw/swtest/egcs/include/g++/stl_algobase.h: In function `bool equal
<int*, int *, equal_to<T>>(int *, int *, int *, struct equal_to<T>)':
y.cc:13: instantiated from `A<int>::operator ==<int>(const A<int> &)
const'
y.cc:20: instantiated from here
/sw/swtest/egcs/include/g++/stl_algobase.h:333: Internal compiler error.
Can someone please add this to the testsuite?
What else is necessary in addition to that
// Build don't link:
comment? I've added?
Respectively, where can I found useful information about the testsuite
and how to add cases? ("deja" does not appear in the info files...)
Gerald
-------- snip --------
// Build don't link:
#include <algorithm>
#include <functional>
template<class T>
class A
{
public:
T* data;
bool operator==(const A<T>& rhs) const
{
return equal(data, data+10, rhs.data, equal_to);
}
};
int main()
{
A<int> a, b;
return a == b;
}
More information about the Gcc-bugs
mailing list