From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25529 invoked by alias); 3 Dec 2014 07:57:12 -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 25497 invoked by uid 48); 3 Dec 2014 07:57:07 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64163] New: [5 Regression] r218024 causes qt5 build failure Date: Wed, 03 Dec 2014 07:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels 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_file_loc bug_status bug_severity priority component assigned_to reporter cc 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-12/txt/msg00309.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64163 Bug ID: 64163 Summary: [5 Regression] r218024 causes qt5 build failure Product: gcc Version: 5.0 URL: https://sourceware.org/bugzilla/show_bug.cgi?id=17670 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Using gold on ppc64, qt5 doesn't build because of r218024. See https://sourceware.org/bugzilla/show_bug.cgi?id=17670 for further analysis by Alan. trippels@gcc2-power8 corelib % cat qmimeglobpattern.ii class G; class A { public: A (G); }; class B { public: int m_fn1 (); }; class QString; struct C { B ref; }; template class QList { C d; public: ~QList (); void m_fn2 (); void m_fn3 (); }; class G : public QList { }; struct D { void m_fn4 (const QString &&); G m_matchingMimeTypes; }; class F { G m_fn5 (const QString &) const; }; template QList::~QList () { if (d.ref.m_fn1 ()) m_fn3 (); } template void QList::m_fn2 () { QList (); } void D::m_fn4 (const QString &&) { m_matchingMimeTypes.m_fn2 (); } G F::m_fn5 (const QString &) const { G a; for (A b (a);;) ; } trippels@gcc2-power8 corelib % cat qmimeprovider.ii class A { public: int m_fn1 (); }; class QString { public: static QString m_fn2 (char *); }; struct B { A ref; }; template class QList { B d; public: ~QList (); class const_iterator { }; const_iterator m_fn3 (); void m_fn4 (); }; class C { QList c; QList::const_iterator i; public: C (QList) : i (c.m_fn3 ()) {} }; class D { public: enum StandardLocation { GenericDataLocation }; static QList m_fn5 (StandardLocation, QString); }; QList a = D::m_fn5 (D::GenericDataLocation, QString::m_fn2 ("")); template QList::~QList () { if (d.ref.m_fn1 ()) m_fn4 (); } void fn1 () { C b (a); } trippels@gcc2-power8 corelib % g++ -shared -w -O3 -fvisibility=hidden -std=c++0x qmimeglobpattern.ii qmimeprovider.ii /home/trippels/bin/ld: internal error in symval_for_branch, at powerpc.cc:6755