This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18447] New: memstream.c:92 dereferencing type-punned pointer -Werror=strict-aliasing


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

            Bug ID: 18447
           Summary: memstream.c:92 dereferencing type-punned pointer
                    -Werror=strict-aliasing
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: darlingm at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Under gcc trunk (6.0.0, 20150521):

In file included from memstream.c:18:0:
memstream.c: In function `open_memsteam':
memstream.c:92:22: error: dereferencing type-punned pointer will break
strict-aliasing rules [-Werror=strict-aliasing]
   _IO_JUMPS ((struct _IO_FILE_plus *) &new_f->fp._sf._sbf) = &_IO_mem_jumps;

libioP.h:107:26: note: in definition of macro `_IO_JUMPS`
 #define _IO_JUMPS(THIS) (THIS)->vtable

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]