Tail recursion vs exceptions vs C++

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Oct 27 09:09: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(); }

This is not a valid C++ program: You cannot call main, not take its
address -- a difference from C. 

-- Gaby



More information about the Gcc mailing list