svn revision 2814 does not compile

Hi, Matplotlib svn tree does not compile anymore since a

    > few days :

Have you upgraded your compiler recently? It compiles fine for me
with an older version

gcc --version

gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2.1)

    > C++ ./CXX/Objects.hxx:1938: error: parse error in template
    > argument list ./CXX/Extensions.hxx: In constructor
    > ?Py::PythonExtension<T>::PythonExtension() [with T =
    > Py::ExtensionModuleBasePtr]?: CXX/cxx_extensions.cxx:90:
    > instantiated from here ./CXX/Extensions.hxx:477: warning:

Nothing in this part of the code has changed for a while -- when was
the last time you successfully compiled. Can you try compiling an
older revision to figure out if something in the code base has changed
or something in your compiler/platform

···

svn log CXX/Objects.hxx

------------------------------------------------------------------------
r2778 | cmoad | 2006-09-20 20:03:00 -0500 (Wed, 20 Sep 2006) | 2 lines

Applied python2.5 build patch submitted on SF

------------------------------------------------------------------------
r1697 | jdh2358 | 2005-08-31 14:13:44 -0500 (Wed, 31 Aug 2005) | 2
lines

added strip chart example

------------------------------------------------------------------------
r1070 | jdh2358 | 2005-03-11 14:00:59 -0600 (Fri, 11 Mar 2005) | 2
lines

upgraded cxx

The most likely candidate that is screwing you up is the r2778 so you
might try a revision before and after that. What python are you using
-- this patch was applied to fix a python2.4 bug.

JDH

Hum it looks like a real bug in ./CXX/Objects.hxx
Line 1938 should be ~mapref() and not ~mapref<T>()
It used to compile bug it is not true any more using gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
According to C++ iso standard, ~mapref<T>() seems to be wrong code so could you please apply this path?

Xavier.

···

            
    > Hi, Matplotlib svn tree does not compile anymore since a
    > few days :

Have you upgraded your compiler recently? It compiles fine for me
with an older version

gcc --version
    

gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2.1)

    > C++ ./CXX/Objects.hxx:1938: error: parse error in template
    > argument list ./CXX/Extensions.hxx: In constructor
    > �Py::PythonExtension<T>::PythonExtension() [with T =
    > Py::ExtensionModuleBasePtr]�: CXX/cxx_extensions.cxx:90:
    > instantiated from here ./CXX/Extensions.hxx:477: warning:

Nothing in this part of the code has changed for a while -- when was
the last time you successfully compiled. Can you try compiling an
older revision to figure out if something in the code base has changed
or something in your compiler/platform

svn log CXX/Objects.hxx
    

------------------------------------------------------------------------
r2778 | cmoad | 2006-09-20 20:03:00 -0500 (Wed, 20 Sep 2006) | 2 lines

Applied python2.5 build patch submitted on SF

------------------------------------------------------------------------
r1697 | jdh2358 | 2005-08-31 14:13:44 -0500 (Wed, 31 Aug 2005) | 2
lines

added strip chart example

------------------------------------------------------------------------
r1070 | jdh2358 | 2005-03-11 14:00:59 -0600 (Fri, 11 Mar 2005) | 2
lines

upgraded cxx

The most likely candidate that is screwing you up is the r2778 so you
might try a revision before and after that. What python are you using
-- this patch was applied to fix a python2.4 bug.

JDH

--
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles Andr�
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gnata@...419...
############################################