From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29705 invoked by alias); 30 Mar 2005 12:24:10 -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 29348 invoked by uid 48); 30 Mar 2005 12:23:24 -0000 Date: Wed, 30 Mar 2005 12:24:00 -0000 Message-ID: <20050330122324.29347.qmail@sourceware.org> From: "falk at debian dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050330095906.20689.varun0005@gmail.com> References: <20050330095906.20689.varun0005@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/20689] strict aliasing with temporary variable never gives warnings X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg03440.txt.bz2 List-Id: ------- Additional Comments From falk at debian dot org 2005-03-30 12:23 ------- (In reply to comment #2) > I mean that since in case where you are doing "void *p=(void *)&i" then > according to strict-aliasing rules we get " warning: dereferencing type-punned > pointer will break strict-aliasing rules" No, you don't. Please provide a *complete* test case, with the command line you use and the output you get. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20689