From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2876 invoked by alias); 1 Nov 2005 20:20: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 2850 invoked by uid 48); 1 Nov 2005 20:20:07 -0000 Date: Tue, 01 Nov 2005 20:20:00 -0000 Message-ID: <20051101202007.2849.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/24406] EQUIVALENCE broken in 32-bit code with optimization -O2 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobi at gcc dot gnu dot org" X-SW-Source: 2005-11/txt/msg00119.txt.bz2 List-Id: ------- Comment #6 from tobi at gcc dot gnu dot org 2005-11-01 20:20 ------- (In reply to comment #3) > The code is illegal, and therefore gfortran can do anything > it wants (including start WW III). > > (1) rteps is never defined, so it can't be reference in the IF > statement. > > (2) Even if rteps was defined prior to the assignments of irt(1) and > irt(2), rteps would become undefined via 14.7.6(1) of the standard. > > (3) The use of BOZ literal constants here is nonstandard although > gfortran may permit its use in this manner (I haven't checked). Using equivalences this way is a common extension, and we actually use this in a number of testcases ourselves, so if we decided to start WWIII in this case, we probably wouldn't live much longer than our testsuite runs take. -- tobi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tobi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24406