This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in egcs?
- To: <egcs-bugs at egcs dot cygnus dot com>
- Subject: Bug in egcs?
- From: Boris Klug <boris at klg dot de>
- Date: Fri, 28 May 99 23:08:03 +0200
Hi!
when I compile this:
#include <queue>
class classA {
public:
int A;
bool operator< (const classA& x) const {return A < x.A;};
};
class classB {
priority_queue<classA*, classA::operator< > mTaskQueue;
};
I get this:
egcs-bug.cpp:15: Internal compiler error.
egcs-bug.cpp:15: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
egcs-bug.cpp:15: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
I run Suse Linux 6.1 which is Linux/i386, Kernel 2.2.9. "gcc --version"
gives me "egcs-2.91.66" - it seems to be egcs-1.1.2.
Here is the compiling run:
>ipl@bart:/pub > gcc -v --save-temps egcs-bug.cpp
>Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
>gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
>-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
>-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
>-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
>-D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386
>-D__i386__ -Di486 -D__i486 -D__i486__ egcs-bug.cpp egcs-bug.ii
>GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 Linux/ELF)
>#include "..." search starts here:
>#include <...> search starts here:
> /usr/include/g++
> /usr/local/include
> /usr/i486-linux/include
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/include
> /usr/include
>End of search list.
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/cc1plus egcs-bug.ii -quiet
>-dumpbase egcs-bug.cc -version -o egcs-bug.s
>GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i486-linux)
>compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
>egcs-bug.cpp:15: Internal compiler error.
>egcs-bug.cpp:15: Please submit a full bug report to
>`egcs-bugs@egcs.cygnus.com'.
>egcs-bug.cpp:15: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
>details.
Find attached the egcs-bug.ii file, zipped with gzip
--
Reality: |) |/ Fon: +49-261-4090577 | Developing for the
|_)oris |\lug Fax: +49-261-4090578 | Macintosh & Internet
Email: <mailto:boris@klg.de> |
Web: <http://klg.de> | Ask T-shirts, not ties
egcs-bug.ii.gz