[Issue 13747] Linux CMSG_NXTHDR is private, since alias doesn't change protection level

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 10 12:30:35 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13747

Paul O'Neil <redballoon36 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|druntime                    |DMD
            Summary|Linux CMSG_NXTHDR is        |Linux CMSG_NXTHDR is
                   |private                     |private, since alias
                   |                            |doesn't change protection
                   |                            |level

--- Comment #2 from Paul O'Neil <redballoon36 at gmail.com> ---
Per Martin's comments
(https://github.com/D-Programming-Language/druntime/pull/1034), this is a
compiler bug, not a problem with the code as originally written in druntime.

private inout(cmsghdr)* __cmsg_nxthdr(inout(msghdr)*, inout(cmsghdr)*) pure
nothrow @nogc;
alias __cmsg_nxthdr CMSG_NXTHDR;

CMSG_NXTHDR should have default protection instead of private.

In the meantime, PR 1034 has been merged; it uses a one-line function for
CMSG_NXTHDR instead of an alias.

--


More information about the Digitalmars-d-bugs mailing list