This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Tail recursion vs exceptions vs C++
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Iain McClatchie <iain at truecircuits dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 27 Oct 2003 05:57:36 +0100
- Subject: Re: Tail recursion vs exceptions vs C++
- Organization: Integrable Solutions
- References: <3F998EE6.7EF604E6@truecircuits.com>
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