From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7427 invoked by alias); 10 Oct 2014 11:23:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7398 invoked by uid 48); 10 Oct 2014 11:23:15 -0000 From: "doko at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg00770.txt.bz2 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 struct A { _Predicate _M_pred; template bool operator()(_Iterator) { return _M_pred; } }; template A<_Predicate> __pred_iter(_Predicate) {} class B { public: int begin(); int end(); }; template void __remove_if(_ForwardIterator, _Predicate p2) { _ForwardIterator __first; p2(__first); } template 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.