This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiler error in egcs-1.1b
- To: egcs-bugs at cygnus dot com
- Subject: compiler error in egcs-1.1b
- From: Tudor Hulubei <tudor at cs dot unh dot edu>
- Date: Sun, 1 Nov 1998 13:52:26 -0500 (EST)
- Organization: University of New Hampshire
- Reply-To: Tudor Hulubei <tudor at cs dot unh dot edu>
Hi,
I got an internal compiler error while attempting to compile the
following piece of code:
-------------------------------------------------------------------
#include <queue>
template<class T>
class compare :
public binary_function<T, T, bool>
{
public:
bool operator()(const T& x, const T& y) const { return false; }
};
int main()
{
priority_queue<int *, compare> m_queue;
return 0;
}
-------------------------------------------------------------------
Compiler version:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
[tudor@hal]:~ $ c++ t.cc
t.cc: In function `int main()':
t.cc:13: Internal compiler error.
t.cc:13: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Regards,
Tudor