D-Programming-Language/dmd — pull request #4093 by Trass3r (2014-10-26 23:44:20+00:00)
Title: add members to enclosing scope for extern(C) enums

http://forum.dlang.org/thread/drmebnustkrwfernoaey@dfeed.kimsufi.thecybershadow.net
The discussions in the forums always get carried away, but some people do find this a reasonable approach.
So fwiw here's a small code change I experimented with.