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 <typename> class QList { C d; public: ~QList (); void m_fn2 (); void m_fn3 (); }; class G : public QList<QString> { }; struct D { void m_fn4 (const QString &&); G m_matchingMimeTypes; }; class F { G m_fn5 (const QString &) const; }; template <typename T> QList<T>::~QList () { if (d.ref.m_fn1 ()) m_fn3 (); } template <typename T> void QList<T>::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 <typename> class QList { B d; public: ~QList (); class const_iterator { }; const_iterator m_fn3 (); void m_fn4 (); }; class C { QList<QString> c; QList<QString>::const_iterator i; public: C (QList<QString>) : i (c.m_fn3 ()) {} }; class D { public: enum StandardLocation { GenericDataLocation }; static QList<QString> m_fn5 (StandardLocation, QString); }; QList<QString> a = D::m_fn5 (D::GenericDataLocation, QString::m_fn2 ("")); template <typename T> QList<T>::~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