D-Programming-Language/dmd — pull request #2685 by 9rnsr (2013-10-20 05:50:33+00:00)
Title: [REG2.064a] Issue 11251 - Not able to link (Previous Definition Different)

http://d.puremagic.com/issues/show_bug.cgi?id=11251

By #2540 , implicitly defined C `main` has been moved to `__entrypoint` module. But, the codegen generates ModuleInfo symbol for the module. And vibe.d has its own main function in library. Then, compiling uer progam with vibe.d library will cause the conflict of two ModuleInfo symbols of `__entrypoint` module.

Due to avoid ModuleInfo symbol generation for `__entrypoint`, I added a special case in `Module::genobjfile` function. But, I'm not sure that the change won't cause any other problems...