From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27348 invoked by alias); 5 Nov 2006 22:26:25 -0000 Received: (qmail 27297 invoked by uid 48); 5 Nov 2006 22:26:16 -0000 Date: Sun, 05 Nov 2006 22:26:00 -0000 Message-ID: <20061105222616.27296.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered 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-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00411.txt.bz2 List-Id: ------- Comment #48 from pinskia at gcc dot gnu dot org 2006-11-05 22:26 ------- (In reply to comment #46) > Folks, can anyone please tell me if this is the same problem as I am seeing > here using gcc 4.0.2 for x86_64: > inline long long Vgetbytes(double f) { > return *reinterpret_cast(&f); > } No that is not the same problem, in fact the above is just plainly violating C++ aliasing rules. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778