[Bug libc/20111] struct sockaddr_storage cannot be aggregate-copied

fweimer at redhat dot com sourceware-bugzilla@sourceware.org
Wed May 18 08:12:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20111

--- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to rguenther from comment #4)

> The way to tell GCC this is to  mark all members of that "implicit" union
> with the may_alias attribute.

If I do this, I get:

t.c:12:38: warning: ignoring attributes applied to ‘struct first’ after
definition [-Wattributes]
   __attribute__ ((may_alias)) struct first f;

We cannot put the may_alias attribute on the struct definition because it
breaks forward declarations (see bug 19622).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list