#38 errors when compiling Blitz++ with clang-svn (patch provided

closed-fixed
portability (8)
5
2012-07-04
2012-04-16
Sylwester Arabas
No

See the attached log file.
Apparently, something similar as described here: https://svn.boost.org/trac/boost/ticket/6198
HTH,
Sylwester

Discussion

  • error messages from clang-svn

     
    Attachments
    log
  • Here's a fix:

    diff -r 262deb840568 blitz/array/expr.h
    --- a/blitz/array/expr.h Wed Jan 25 10:48:31 2012 -0500
    +++ b/blitz/array/expr.h Tue May 29 15:58:56 2012 +0200
    @@ -243,7 +243,7 @@

    template<int N>
    typename tvresult<N>::Type fastRead_tv(diffType i) const
    - { return iter_.fastRead_tv<N>(i); }
    + { return iter_.template fastRead_tv<N>(i); }

    bool isVectorAligned(diffType offset) const
    { return iter_.isVectorAligned(offset); }

     
  • Blitz clang 3.1 compatibility patch

     
  • And here's a more complete solution (patch sent as an "attached ile")

     
    • summary: errors when compiling Blitz++ with clang-svn --> errors when compiling Blitz++ with clang-svn (patch provided
     
    • labels: --> portability
    • assigned_to: nobody --> julianc
    • status: open --> open-accepted
     
    • status: open-accepted --> pending-fixed
     
  • I have applied this patch for clang 3.1, but only tested with g++ compiler. I will close the ticket if everything seems ok.

     
    • status: pending-fixed --> closed-fixed