This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tail recursion vs exceptions vs C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]