This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: template-depth
On Fri, Dec 29, 2000 at 09:14:14AM +0000, Jason Merrill wrote:
>
> 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.
Setting infinity to equal 50 sounds good to me. If a user really needs
a bigger infinity (with apologies to Cantor :-), -ftemplate-depth-NN is
not an unreasonable requirement, IMHO.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.