bug report
holger@lfbs.rwth-aachen.de
holger@lfbs.rwth-aachen.de
Wed May 19 07:13:00 GMT 1999
Hello
i think my program is right c++ code, so it should be a bug in egcs
thank you for your time and sorry for my english :)
bug report:
-----------
egcs version: (g++ --version)
egcs-2.91.66 (egcs-1.1.2, tried also egcs-1.1.1--same effect)
system type: (unmae -a)
SunOS 5.6 ... sun4u sparc SUNW,Ultra-4
options to egcs:
g++ -Wall program.cpp
problem:
In method `class B & B::operator =(const class B &)':
Internal compiler error 980521.
Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
this message only appears if i compile with option -Wall.
a further problem: if i write "int a" instead of "A a", then
compiling with option -Wall i get no internal error, but egcs prints
no warning (i should get a warning because of unused variable C<int> v).
program:
--------------------------
#include <vector.h>
class A {};
class B {
vector<int> v;
A a;
};
template <class T> class C {
B b1, b2;
public:
C() { b2 = b1;}
};
int main() {
C<int> v;
return 0;
}
--------------------------
--
Holger Bischof RWTH Aachen | Tel.: +49-241-80-7805
Lehrstuhl fuer Betriebssysteme (LfBS) | Fax.: +49-241-8888-339
Kopernikusstr. 16 | e-mail: holger@lfbs.rwth-aachen.de
52056 Aachen, Germany
More information about the Gcc-bugs
mailing list