X-Spam-Check-By: sourceware.org Message-ID: <9cadfd370512021129i622980f3t@mail.gmail.com> Date: Fri, 2 Dec 2005 16:29:49 -0300 From: =?ISO-8859-1?Q?Iv=E1n_Nieto?= To: cygwin AT cygwin DOT com Subject: gcc 3.4.4: stl's uninitialized bug MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jB2JTwuQ030913 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 class Foo { public: Foo(); Foo(const Foo& f); ~Foo(); }; void function() { std::list 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/