public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/63505] New: [4.8/4.9 Regression] ICE with -fdebug-types-section in should_move_die_to_comdat, at dwarf2out.c:6702
Date: Fri, 10 Oct 2014 11:23:00 -0000	[thread overview]
Message-ID: <bug-63505-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63505

            Bug ID: 63505
           Summary: [4.8/4.9 Regression] ICE with -fdebug-types-section in
                    should_move_die_to_comdat, at dwarf2out.c:6702
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

this might be related to PR57664 and/or PR53860 (but the latter was closed),
seen on today's 4.8 and 4.9 branches, but not on trunk.

test case reduced from https://bugs.debian.org/764624

$ cat test.cc
template <typename _Predicate> struct A {
  _Predicate _M_pred;
  template <typename _Iterator> bool operator()(_Iterator) { return _M_pred; }
};
template <typename _Predicate> A<_Predicate> __pred_iter(_Predicate) {}

class B {
public:
  int begin();
  int end();
};
template <typename _ForwardIterator, typename _Predicate>
void __remove_if(_ForwardIterator, _Predicate p2) {
  _ForwardIterator __first;
  p2(__first);
}

template <typename _ForwardIterator, typename _Predicate>
void remove_if(_ForwardIterator, _ForwardIterator p2, _Predicate p3) {
  __remove_if(p2, __pred_iter(p3));
}

void tidy_container() {
  B env_container;
  if (false)
    remove_if(env_container.begin(), env_container.end(), [] {});
}

$ g++ -std=gnu++0x -c -g -fdebug-types-section test.cc 
test.cc:27:1: internal compiler error: in should_move_die_to_comdat, at
dwarf2out.c:6702
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.


             reply	other threads:[~2014-10-10 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 11:23 doko at gcc dot gnu.org [this message]
2014-11-19 13:30 ` [Bug other/63505] " rguenth at gcc dot gnu.org
2014-12-10 13:13 ` [Bug debug/63505] " rguenth at gcc dot gnu.org
2014-12-19 13:39 ` jakub at gcc dot gnu.org
2015-06-23  8:21 ` rguenth at gcc dot gnu.org
2015-06-26 20:10 ` [Bug debug/63505] [4.9 " jakub at gcc dot gnu.org
2015-06-26 20:36 ` jakub 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-63505-4@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).