Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's potentially more than one function named main, and recursion is forbidden to a well-known one of them #261

Closed
villevoutilainen opened this issue Jan 23, 2014 · 0 comments

Comments

@villevoutilainen
Copy link
Member

5.2.2 [expr.call]/9 says
"Recursive calls are permitted, except to the function named main (3.6.1)."
Since there's that cross-reference, it's otherwise correct, but I'd prefer it
to say "to the main function" instead of "to the function named main", since
nothing prevents me from having functions named main in user-defined namespaces
or as member functions of classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant