From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23002 invoked by alias); 26 Nov 2008 09:40:43 -0000 Received: (qmail 12427 invoked by uid 48); 26 Nov 2008 09:39:19 -0000 Date: Wed, 26 Nov 2008 09:40:00 -0000 Message-ID: <20081126093919.12426.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/38233] [4.4 Regression] 'map' value type + new uninitted const member warnings causes error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg02242.txt.bz2 ------- Comment #4 from paolo dot carlini at oracle dot com 2008-11-26 09:39 ------- The below is a pure C++ testcase, which EDG accepts and mainline rejects. Jason can you look a bit into it? Thanks in advance! //////////////// template struct pair { _T1 first; _T2 second; // _GLIBCXX_RESOLVE_LIB_DEFECTS // 265. std::pair::pair() effects overly restrictive /** The default constructor creates @c first and @c second using their * respective default constructors. */ pair() : first(), second() { } }; class a { public: a(); }; class b { public: // implicit default ctor bool operator<(const b& rhs) const; private: a a_val; }; typedef pair my_pair; void func() { my_pair x; } -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|libstdc++ |c++ Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-11-26 09:39:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38233