D-Programming-Language/dmd — pull request #2540 by 9rnsr (2013-09-09 04:48:21+00:00)
Title: Fix genCmain code to remove ambiguity of `&main` expression

It was introduced by pull #2476, but the expression `&main` which is implicitly
inserted would conflict with two extern(C) and (D) "main" functions in
user module.

Instead, separate the entry-point code in the hidden module `__entrypoint.d`