This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gcc 3.4.4: stl's uninitialized bug
- From: Iván Nieto <doamud at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 2 Dec 2005 16:29:49 -0300
- Subject: gcc 3.4.4: stl's uninitialized bug
Building a Cygwin project of mine with gcc 3.4.* issues some warnings
I haven't been able to eliminate completely. I'm using gcc 3.4.4 with
Cygwin 1.5.18, under Windows 98SE.
I've reduce the problem to this test case:
#include <list>
class Foo {
public:
Foo();
Foo(const Foo& f);
~Foo();
};
void function() {
std::list<Foo> deleted;
deleted.push_back(Foo());
}
Compiling with:
g++ -c -O2 -Wall -Werror foo.cpp
Note that if -O2 is removed or replaced by -O, it doesn't issue a warning.
Also, commenting out Foo's copy constructor, "solves" the problem.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/