From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30468 invoked by alias); 6 Nov 2009 09:19:07 -0000 Received: (qmail 30414 invoked by uid 48); 6 Nov 2009 09:18:57 -0000 Date: Fri, 06 Nov 2009 09:19:00 -0000 Message-ID: <20091106091857.30413.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/41874] Incorrect "dereferencing type-punned pointer will break strict-aliasing rules" warning In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00519.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2009-11-06 09:18 ------- > > ------- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-06 09:09 ------- > > 4.5 also fails Fails in that it warns still. The first example warns with 4.5, while adding an extra variable and doing a cast to void* causes GCC not to warn. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874