This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18447] New: memstream.c:92 dereferencing type-punned pointer -Werror=strict-aliasing
- From: "darlingm at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 22 May 2015 07:26:40 +0000
- Subject: [Bug libc/18447] New: memstream.c:92 dereferencing type-punned pointer -Werror=strict-aliasing
- Auto-submitted: auto-generated
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.