July 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10553

           Summary: Access specifiers on anon enums have no effect
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-07-05 14:00:41 PDT ---
-----
module foo;

private enum
{
    A = 1,
    B = 2,
}
-----

-----
module test;

import foo;

void main()
{
    auto a = A;
}
-----

$ dmd test.d
> 

I would assume using 'private' on an an enum would make all the members private, but instead it is a no-op.

Note that you can't even mark individual anon members due to Issue 10552:

-----
enum
{
    private A = 1,
    B = 2,
}
-----

$ dmd test.d
> Error: basic type expected, not private

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10553


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning@still-hidden.de


--- Comment #1 from Henning Pohl <henning@still-hidden.de> 2013-07-05 19:28:26 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2304

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------