PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3571 *** shadow/3571 Wed Sep 12 09:48:35 2001 --- shadow/3571.tmp.18377 Wed Sep 12 09:48:35 2001 *************** *** 0 **** --- 1,38 ---- + +============================================================================+ + | Failed compilation with STLPort 4.5 - attributed to operator== | + +----------------------------------------------------------------------------+ + | Bug #: 3571 Product: XalanC | + | Status: NEW Version: 1.2.x | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Linux | + | Priority: Other Component: XPathC | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Xalan 1.2 fails to compile with STLPort 4.5 under i686 GNU/Linux gcc-2.95.2. + Numerous files fail, including XSLT/VariableStack.cpp, XSLT/Stylesheet.cpp, + XercesParserLiason/XercesParserLiason.cpp. + + Each compilation problem seems to arise from the use of non-member operator== + functions in a number of classes within files in the XPATH directory. By + changing these to member functions the problem goes away. Pretty wierd, huh? + + I've confirmed that everything's fine with STLPort 4.0. It also seems to be OK + with Solaris 8 & gcc-2.95.2 + + e.g. + + Changing operator==(const XObject& theLHS, const XObject& theRHS) in + XPath/XObject.hpp + + to a member function: + + bool operator==(const XObject& theRHS) const + { return m_xobjectPtr == theRHS.m_xobjectPtr; } + + seems to work (if you also remove the friend declaration!)
