#37877: scantailor: build fails with clang ---------------------------+----------------------- Reporter: ryandesign@… | Owner: raphael@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: scantailor | ---------------------------+----------------------- Comment (by raphael@…): Replying to [comment:1 jeremyhu@…]:
Ok, then this looks like a project bug. Those should probably not be private.
But, there is a friend declaration in class {{{Mat}}} in {{{math/MatrixCalc.h}}}: {{{ template<typename T> class Mat { template<typename OT, typename Alloc> friend class MatrixCalc; [...] private: Mat(AbstractAllocator<T>* alloc, T const* data, int rows, int cols) : alloc(alloc), data(data), rows(rows), cols(cols) {} [...] }; [...] template<typename T, typename Alloc = mcalc::StaticPoolAllocator<T, 128, 9> > class MatrixCalc { [...] public: MatrixCalc() {} mcalc::Mat<T> operator()(T const* data, int rows, int cols) { return mcalc::Mat<T>(&m_alloc, data, rows, cols); } [...] }; }}} This looks OK to me and also to gcc. Is this one of the [http://llvm.org/bugs/buglist.cgi?quicksearch=friend bugs concerning friend declarations in clang]? -- Ticket URL: <https://trac.macports.org/ticket/37877#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS