This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9966: basic_string::operator+ uses recursice template instantiation


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]