Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-58

Failed compilation with STLPort 4.5 - attributed to operator==

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • 1.2.x
    • None
    • XPathC
    • None
    • Operating System: Linux
      Platform: PC
    • 3571

    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!)

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.holt@argogroup.com David Holt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: