From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8407 invoked by alias); 25 Sep 2004 18:09:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8395 invoked by uid 48); 25 Sep 2004 18:09:07 -0000 Date: Sat, 25 Sep 2004 18:09:00 -0000 Message-ID: <20040925180907.8394.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040924231306.17665.davids@webmaster.com> References: <20040924231306.17665.davids@webmaster.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/17665] wrong code with -O2 X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg03126.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-25 18:09 ------- No read the standard again What it says is that only char can aliasing anything and nothing else. since you access it via both char* and void* that is what violates the aliasing rules. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17665