public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "paolo dot carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/38233] [4.4 Regression] 'map' value type + new uninitted const member warnings causes error
Date: Wed, 26 Nov 2008 09:40:00 -0000	[thread overview]
Message-ID: <20081126093919.12426.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38233-16508@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2008-11-26  9:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23  8:47 [Bug libstdc++/38233] New: " cgd at google dot com
2008-11-23  8:49 ` [Bug libstdc++/38233] " cgd at google dot com
2008-11-23 12:23 ` [Bug libstdc++/38233] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-11-23 14:43 ` pinskia at gcc dot gnu dot org
2008-11-24 11:11 ` paolo dot carlini at oracle dot com
2008-11-26  9:40 ` paolo dot carlini at oracle dot com [this message]
2008-11-26 20:12 ` [Bug c++/38233] " jason at gcc dot gnu dot org
2008-11-28 23:38 ` jason at gcc dot gnu dot org
2008-11-28 23:40 ` jason at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081126093919.12426.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).