G'day all,

Has anyone seen the following with the latest CVS checkout on linux using gcc 2.95.4?

g++ -O2 -DNDEBUG -Wall -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/export/autobuild/build/xml-xalan/src -I/export/autobuild/build/xml-xalan/include -I../../nls/include -I/export/autobuild/build/xml-xerces/src/ -I/export/autobuild/build/xml-xerces/include/xercesc -I/export/autobuild/build/xml-xerces/include/ -o ../../obj/ResultNamespacesStack.o /export/autobuild/build/xml-xalan/src/xalanc/XSLT/ResultNamespacesStack.cpp
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_iterator.h: In function `ptrdiff_t distance<const xalanc_1_9::NameSpace *>(const xalanc_1_9::NameSpace *, const xalanc_1_9::NameSpace *)':
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_iterator.h:308:
template instantiation depth exceeds maximum of 17


....  (many many many more lines of output)

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_iterator.h:308:
  (use -ftemplate-depth-NN to increase the maximum)

.... (many many more)

If you increase -ftemplate-depth-NN it compiles (takes some time but works). I don't see this problem on gcc 3.x (although I've only tried with a couple of versions.

I think it may need a test in configure, but I think it may be a bit of a bugger to write - although we could just try compiling this file I suppose :>.

Cheers,
        Berin



Reply via email to