------- 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<class _T1, class _T2> 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<const b, int> 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