From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22115 invoked by alias); 24 Mar 2015 10:57:16 -0000 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 Received: (qmail 16714 invoked by uid 48); 24 Mar 2015 10:57:12 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65532] [5 Regression] Unexpected error with legacy code (D1MACH) Date: Tue, 24 Mar 2015 11:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02539.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65532 --- Comment #4 from Mikael Morin --- With r221586, procedure d1mach is resolved more than once. At the first time resolve_values is called, the problematic variables (diver, large, etc) have a NULL sym->value, which is set afterwards in resolve_data. On the second call, the value is non-null and the error is produced.