This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

compiler error in egcs-1.1b



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]