From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1554 invoked by alias); 6 Dec 2011 10:08:52 -0000 Received: (qmail 1544 invoked by uid 22791); 6 Dec 2011 10:08:51 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Dec 2011 10:08:37 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51435] [4.6/4.7 Regression] Bad association status after null() of derived type component Date: Tue, 06 Dec 2011 10:08: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-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.3 X-Bugzilla-Changed-Fields: Keywords CC Target Milestone Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2011-12/txt/msg00540.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51435 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |burnus at gcc dot gnu.org Target Milestone|--- |4.6.3 Summary|Bad association status |[4.6/4.7 Regression] Bad |after null() of derived |association status after |type component |null() of derived type | |component --- Comment #1 from Tobias Burnus 2011-12-06 10:08:32 UTC --- With GCC 4.3, 4.4 and 4.5, I get: do_job my_data%head is NOT associated while GCC 4.6 prints do_job my_data%head is associated With GCC 4.7 I get the correct result ("NOT associated") but it shows the same valgrind warning as GCC 4.6. (GCC 4.5 shows no valgrind warning.) Thus, either the issue is fixed in 4.7 - and 4.6 and 4.7 have additional issues. Or it works in 4.7 only by chance. ==19540== Conditional jump or move depends on uninitialised value(s) ==19540== at 0x400776: __worker_mod_MOD_do_job (hjhjff.f90:29) ==19540== by 0x400849: MAIN__ (hjhjff.f90:47) ==19540== by 0x40087F: main (hjhjff.f90:44) Line 29 is: if (associated(dum%my_data%head)) then