public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57107] tree check fail in unlink_stmt_vdef
Date: Mon, 29 Apr 2013 09:00:00 -0000	[thread overview]
Message-ID: <bug-57107-4-UqHmkJ4VzQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-57107-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57107

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2013-04-29 09:00:33 UTC ---
Reduced:

class A {
public:
  template <typename _Tp1> struct rebind {
    typedef A other;
  };
  ~A() {}
};
template <typename _Alloc> struct __alloc_traits {
  template <typename _Tp> struct rebind {
    typedef typename _Alloc::template rebind<_Tp>::other other;
  };
};
template <typename _Tp, typename _Alloc> struct B {
  typedef typename __alloc_traits<_Alloc>::template rebind<_Tp>::other
  _Tp_alloc_type;
  struct C : _Tp_alloc_type {
    C(_Tp_alloc_type) : _Tp_alloc_type() {}
  };
  typedef _Alloc allocator_type;
  B(int, const allocator_type &p2) : _M_impl(p2) {}
  C _M_impl;
};
template <typename _Tp, typename _Alloc = A> class D : B<_Tp, _Alloc> {
  typedef B<_Tp, _Alloc> _Base;
public:
  typedef _Tp value_type;
  typedef _Alloc allocator_type;
  D(const value_type &p1, const allocator_type &p2 = allocator_type())
      : _Base(0, p2) {
    _M_fill_initialize(p1);
  }
  void _M_fill_initialize(const value_type &);
};
void _setjmp();
void writeQImageToPng() {
  _setjmp();
  D<unsigned*>(0);
}


  parent reply	other threads:[~2013-04-29  9:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29  8:07 [Bug c++/57107] New: " dcb314 at hotmail dot com
2013-04-29  8:08 ` [Bug c++/57107] " dcb314 at hotmail dot com
2013-04-29  9:00 ` markus at trippelsdorf dot de [this message]
2013-04-29 16:31 ` mpolacek at gcc dot gnu.org
2013-04-30  8:24 ` [Bug middle-end/57107] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-04-30 10:53 ` rguenth at gcc dot gnu.org
2013-04-30 13:54 ` rguenth at gcc dot gnu.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=bug-57107-4-UqHmkJ4VzQ@http.gcc.gnu.org/bugzilla/ \
    --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).