Hi, this is reported as https://bugs.kde.org/show_bug.cgi?id=191750, but to me and to NetBeans it looks like the code is OK and the upstream developers seem to be equally confused.
So: here are the important parts of http://websvn.kde.org/trunk/KDE/kdelibs/khtml/xml/dom_elementimpl.h?revision=1070748&view=markup ************* class AttrImpl : public NodeBaseImpl { ... public: ... DOMStringImpl *val() const { return m_value; } ... }; ... struct AttributeImpl { ... 135 DOMStringImpl *val() const { return m_localName.id() ? m_data.value : m_data.attr->val(); } ... union { DOMStringImpl *value; AttrImpl *attr; } m_data; }; ************* so m_data.value is a pointer to DOMStringImpl, m_data.attr->val() is a pointer to DOMStringImpl, yet the build fails with *********** "/home/hajma/Dashboards/kdelibs/srcdir/khtml/xml/dom_elementimpl.h", line 135: Error: Different types for "?:" (DOM::DOMStringImpl*const and bool). *********** where does the 'bool' come from? any hints welcome -- This message posted from opensolaris.org
