Since Yan couldn't reconstruct how he got around it when temporarily using CodeWarrior9 and gcc4.2(or was it 4.3?):
If one uses a recent compiler, e.g. gcc4.4.1 for the following output, there are problems with the CSP_Point and VectorVariable classes. Here's my output:
g++ -m64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -ftree-vectorize -DSAMG_UNIX_LINUX -DSAMG_LCASE_USCORE -Wno-deprecated -Wno-reorder -Wno-unused -Wno-switch -frtti -fexceptions -DCSP_WITH_SAMG_SOLVER -DNDEBUG -c -I../computational_geometry -I../finite_elements -I./ -I../applied_math -I../interfaces -I../solver -I../pde_operators -I../../support_libraries/f2c -I../../support_libraries/jpeg -I../../support_libraries/utilities -I../parallel Algorithm.cpp
In file included from VectorVariable.h:7,
from CSP_MemoryManager.h:7,
from Algorithm.h:8,
from Algorithm.cpp:5:
VectorVariable1.h:71: error: declaration of csp::Point<fT, 1u> csp::VectorVariable<fT, 1u>::Point() const
CSP_Point.h:78: error: changes meaning of Point from class csp::Point<fT, 1u> In file included from VectorVariable.h:8,
from CSP_MemoryManager.h:7,
from Algorithm.h:8,
from Algorithm.cpp:5:
VectorVariable2.h:71: error: declaration of csp::Point<fT, 2u> csp::VectorVariable<fT, 2u>::Point() const
CSP_Point.h:132: error: changes meaning of Point from class csp::Point<fT, 2u> In file included from CSP_MemoryManager.h:7,
from Algorithm.h:8,
from Algorithm.cpp:5:
VectorVariable.h:85: error: declaration of csp::Point<fT, 3u> csp::VectorVariable<fT, 3u>::Point() const
CSP_Point.h:188: error: changes meaning of Point from class csp::Point<fT, 3u>
make: *** [Algorithm.o] Error 1
I couldn't really figure out what happens here. Any ideas?
(Stephan once mentioned that this is fixed in the release version but in the "release version" that I got last April, those two classes are exactly the same as the ones I tried to compile.)