This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: template-depth
>>>>> "Phil" == Phil Edwards <pedwards@disaster.jaj.com> writes:
> I personally also feel that the max nesting depth needs to be increased,
> but that's mainly from a feeling of let's-not-apply-arbitrary-limits.
> A factor of 10x sounds good to me. Removing it altogether wouldn't bother
> me, but maybe that safety net should stay.
The limit is necessary to trap infinite recursion. However, we can
certainly define infinity to be larger than 14; that's just the number
required by the standard. I don't feel strongly about the new limit; 50
seems a nice round number.
Jason