From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19278 invoked by alias); 30 Apr 2014 13:44:44 -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 19156 invoked by uid 48); 30 Apr 2014 13:44:39 -0000 From: "sven.buijssen at math dot uni-dortmund.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/61014] [4.7/4.8/4.9/4.10 Regression] gdb can't find symbol of derived data type array in nested subroutine Date: Wed, 30 Apr 2014 13:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sven.buijssen at math dot uni-dortmund.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 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: 2014-04/txt/msg02266.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61014 --- Comment #4 from Sven Buijssen --- I tried gdb 7.7 with Intel Fortran 10.1.023, 11.1.080, 12.1.7.367, 13.0.1.117, 13.1.3.192 and 14.0.2.144, respectively and get wrong results at breakpoint 1 (value of bar(1)%i = 0) and either "no symbol" or "cannot access memory" at breakpoint 2: ifort 10.1.023: Breakpoint 1, MODULE::foo (bar=..., bar=...) at module.f90:10 10 call subfoo() (gdb) p bar $1 = (( 0 )) (gdb) c Continuing. Breakpoint 2, 0x0000000000402af8 in modulefoo_mp_subfoo_ () (gdb) p bar No symbol "bar" in current context. # ifort 11.1.080 & 12.1.7.367 & 13.0.1.117 & 13.1.3.192: Breakpoint 1, MODULE::foo (bar=...) at module.f90:10 10 call subfoo() (gdb) p bar $1 = (( 0 )) (gdb) c Continuing. Breakpoint 2, MODULE::subfoo () at module.f90:14 14 bar(1)%i = 1 (gdb) p bar $2 = (( 0 )) (gdb) p bar(1)%i Cannot access memory at address 0x4 # ifort 14.0.2.144: Breakpoint 1, MODULE::foo (bar=...) at module.f90:10 10 call subfoo() (gdb) p bar $1 = (( 0 )) (gdb) c Continuing. Breakpoint 2, modulefoo_mp_subfoo_ () at module.f90:14 14 bar(1)%i = 1 (gdb) p bar No symbol "bar" in current context. (gdb) p bar(1)%i No symbol "bar" in current context.