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 rtl-optimization/55106] ice: Maximum number of LRA constraint passes is achieved (15)
Date: Sun, 28 Oct 2012 14:52:00 -0000	[thread overview]
Message-ID: <bug-55106-4-Yg4uCqxOE6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55106-4@http.gcc.gnu.org/bugzilla/>


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de, vmakarov at gcc dot
                   |                            |gnu.org

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-28 14:52:03 UTC ---
markus@x4 tmp % cat test.ii
template<typename _Tp> struct A {
  typedef _Tp *pointer;
  typedef _Tp& reference;
  typedef _Tp& const_reference;
  template<typename>struct rebind
  {
    typedef A other;
  };
};

template<typename _Alloc>struct __alloc_traits
{
  typedef typename _Alloc::pointer         pointer;
  typedef typename _Alloc::reference       reference;
  typedef typename _Alloc::const_reference const_reference;
  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;
  typedef typename __alloc_traits<_Tp_alloc_type>::pointer pointer;
  struct F
  {
    pointer _M_start;
  };
  F _M_impl;
};
template<typename _Tp, typename _Alloc = A<_Tp> >class vec : B<_Tp, _Alloc>{
  typedef B<_Tp, _Alloc>                 _Base;
  typedef typename _Base::_Tp_alloc_type _Tp_alloc_type;
  typedef __alloc_traits<_Tp_alloc_type> _Alloc_traits;

public:
  typedef _Tp                                     value_type;
  typedef typename _Alloc_traits::reference       reference;
  typedef typename _Alloc_traits::const_reference const_reference;
  reference operator[](int p1)
  {
    return *(this->_M_impl._M_start + p1);
  }

  const_reference operator[](long) const;
};

int a[17];
class C {
  vec<int> m_value;
  void opModDivGuts(const C&);
  int mostSetBitP1() const;
};
void C::opModDivGuts(const C& p1)
{
  int b = p1.mostSetBitP1(), c = b + 1;
  int d[16];

  for (int i = c; i; i--)
    a[i] = p1.m_value[i] << b;

  for (int i = 0; i < c; i++)
    m_value[i] = d[i] >> b << -b;
}

markus@x4 tmp % g++ -Wall -Wextra -c -O3 test.ii
test.ii: In member function ‘void C::opModDivGuts(const C&)’:
test.ii:65:1: internal compiler error: Maximum number of LRA constraint passes
is achieved (15)


  reply	other threads:[~2012-10-28 14:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 14:06 [Bug c++/55106] New: " dcb314 at hotmail dot com
2012-10-28 14:52 ` markus at trippelsdorf dot de [this message]
2012-10-29  0:42 ` [Bug rtl-optimization/55106] " vmakarov at gcc dot gnu.org
2012-10-29 14:40 ` rguenth at gcc dot gnu.org
2012-10-29 14:43 ` vmakarov at gcc dot gnu.org
2012-12-20 19:36 ` vanboxem.ruben at gmail dot com
2012-12-20 19:42 ` vanboxem.ruben at gmail dot com
2012-12-21 14:28 ` vmakarov 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-55106-4-Yg4uCqxOE6@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).