Blitz logo

Blitz Bugs :

From: christophe grimault (christophe.grimault_at_[hidden])
Date: 2003-05-28 10:03:46


Hi all,

I have some problem in the compile phase of my project. Everything is OK
when I use:
CXXFLAGS= -march=i686 -ftemplate-depth-30 -g -DBZ_DEBUG
or even with :
CXXFLAGS= -march=i686 -ftemplate-depth-30

CXXFLAGS= -march=i686 -O? -ftemplate-depth-30 -I/opt/blitz-0.6

where -O? can be -O or -O2, then I get into problems. The output can be
resumed as follows:

**************************************************************************************

cd /home/grimault/BSL/
make
g++ -c -march=i686 -O2 -ftemplate-depth-100 -I/opt/blitz-0.6 -I.
-I/opt/blitz-0.6 -I/usr/local/include -o tx_ofdm.o tx_ofdm.
cpp
In file included from /opt/blitz-0.6/blitz/listinit.h:65,
                from /opt/blitz-0.6/blitz/listinit.h:65,
                from /opt/blitz-0.6/blitz/listinit.h:65,
                   ..... tons of this

                from /opt/blitz-0.6/blitz/listinit.h:65,
                from /opt/blitz-0.6/blitz/memblock.cc:167:
/opt/blitz-0.6/blitz/listinit.h:65: template instantiation depth exceeds
  maximum of 100 (use -ftemplate-depth-NN to increase the maximum)
  instantiating `blitz::ListInitializer<T_numtype, T_iterator>
  blitz::ListInitializer<T_numtype, T_iterator>::operator,(T_numtype) [with
  T_numtype = std::complex<float>, T_iterator = std::complex<float>*]'
/opt/blitz-0.6/blitz/listinit.h:65: instantiated from
`blitz::ListInitializer<T_numtype, T_iterator> blitz::ListInitialize
r<T_numtype, T_iterator>::operator,(T_numtype) [with T_numtype =
std::complex<float>, T_iterator = std::complex<float>*]'
/opt/blit
                   ..... tons of this

/opt/blitz-0.6/blitz/memblock.cc:167: instantiated from here
/opt/blitz-0.6/blitz/listinit.h:65: template instantiation depth exceeds
  maximum of 100 (use -ftemplate-depth-NN to increase the maximum)
  instantiating `blitz::ListInitializer<T_numtype, T_iterator>
  blitz::ListInitializer<T_numtype, T_iterator>::operator,(T_numtype) [with
  T_numtype = std::complex<float>, T_iterator = std::complex<float>*]'
/opt/blitz-0.6/blitz/listinit.h:65: instantiated from
`blitz::ListInitializer<T_numtype, T_iterator> blitz::ListInitialize
r<T_numtype, T_iterator>::operator,(T_numtype) [with T_numtype =
std::complex<float>, T_iterator = std::complex<float>*]'
/opt/blitz-0.6/blitz/listinit.h:65: instantiated from `blitz:

                   ..... tons of this

r<T_numtype, T_iterator>::operator,(T_numtype) [with T_numtype =
std::complex<float>, T_iterator = std::complex<float>*]'
/opt/blitz-0.6/blitz/memblock.cc:216: instantiated from here
make: *** [tx_ofdm.o] Erreur 1

Compilation exited abnormally with code 2 at Wed May 28 11:35:17
**************************************************************************************

I tried to increase template depth to 100, without effect. I'm quite
annoyed since without optimization,
everything is OK.

Does someone have any idea ? BTW I use RH9.0 and gcc 3.2.2-5.
Thanks in advance !

-- 
  ------------------------------------------------------
 | Christophe Grimault              Tel: 02 23 23 52 59 |
 | NovaGrid SA                  http://www.novagrid.com |
 |                                  fax: 02 23 23 62 32 |
 |               mail: christophe.grimault_at_[hidden] |
 | 2, Bd Sebastopol                                     |
 | 35000 RENNES                                         |
 | France                                               |
 |______________________________________________________|