Tail recursion vs exceptions vs C++

Oscar Fuentes ofv@wanadoo.es
Fri Oct 24 23:54:00 GMT 2003


Iain McClatchie <iain@truecircuits.com> writes:

> I cannot compile the following one-line program without
> disabling exceptions.  Fails for both GCC 3.2.2 and 3.2.1.
>
> int main() { main(); }

Recursive calls to `main' is not permitted in C++ (5.2.2/9)

[snip]

-- 
Oscar



More information about the Gcc mailing list