# patch from CVS head to enable compilation with gcc-4.1.x diff -Naur ginac-1.3.3/ginac/indexed.cpp ginac-1.3.3-new/ginac/indexed.cpp --- ginac-1.3.3/ginac/indexed.cpp 2005-05-19 09:24:35.000000000 -0500 +++ ginac-1.3.3-new/ginac/indexed.cpp 2006-03-15 08:32:35.000000000 -0600 @@ -704,6 +704,9 @@ } } +// Forward declaration needed in absence of friend injection, C.f. [namespace.memdef]: +ex simplify_indexed(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp); + /** Simplify product of indexed expressions (commutative, noncommutative and * simple squares), return list of free indices. */ ex simplify_indexed_product(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp)