This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9966: basic_string::operator+ uses recursice template instantiation
- From: Stefan Rupp <stefan dot rupp at inform-ac dot com>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, struppi at acm dot org
- Date: Wed, 05 Mar 2003 16:52:59 +0100
- Subject: Re: c++/9966: basic_string::operator+ uses recursice template instantiation
- Organization: Inform GmbH
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9966
The question may be a different one:
Is an implementation forced to use such a huge template-depth for
compiling the expression in question, so that a template-depth of more
than 17 is neccessary, or is it just the GNU string implementation which
makes it neccessary for the compiler to have a huge (default)
template-depth of 500 (btw. I did not find the defaukt value in the gcc
info pages; the only number noted there is the 17 from the ISO standard)?
In the former case the limitation of 17 in the ISO standard is nonsense,
in the latter case, the GNU string implementation may be broken.
Since I don't know very much about the internals of the GNU string
implementation, any input is welcome.