From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13975 invoked by alias); 28 Nov 2008 23:37:29 -0000 Received: (qmail 13693 invoked by uid 48); 28 Nov 2008 23:36:09 -0000 Date: Fri, 28 Nov 2008 23:37:00 -0000 Message-ID: <20081128233609.13692.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/38297] O2 causes invalid code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "cdfrey at netdirect dot ca" 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: 2008-11/txt/msg02521.txt.bz2 ------- Comment #12 from cdfrey at netdirect dot ca 2008-11-28 23:36 ------- > The reason why the union case is considered > unspecified is because it depends on the under > laying bit representation of float. That makes sense. In this case, it's not really a type punning issue and more of a float issue. We'd be up the same creek without a paddle if we used memcpy() on floats too. Thanks, - Chris -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38297