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(); }

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

-- Gaby


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