GCC 4 now produces a "conflicting types" error for code that gcc 3.4 accepts without complaint. This usage pattern occurs when using glibc's <sys/socket.h> with _GNU_SOURCE defined, followed by a POSIX-compliant redeclaration of function like `accept'. This is what transparent_union was invented to support.
-- Summary: transparent_union doesn't allow restrict qualifier removal Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: roland at redhat dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20043