public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "toon at moene dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/40998] New: Source with routine in CONTAINS section and a local variable: No symbol "nerr" in current context Date: Fri, 07 Aug 2009 12:53:00 -0000 [thread overview] Message-ID: <bug-40998-17017@http.gcc.gnu.org/bugzilla/> (raw) The following source, compiled with a recent 4.5 snapshot using -ggdb as the only compiler option: MODULE x04aafe_aux IMPLICIT NONE CONTAINS SUBROUTINE dummy INTEGER :: nerr CALL x04aaf(0,nerr) PRINT *, 'Hello',nerr END SUBROUTINE dummy END MODULE x04aafe_aux PROGRAM x04aafe USE x04aafe_aux CALL x04aaf(1,666) CALL dummy END PROGRAM x04aafe SUBROUTINE X04AAF(IFLAG,NERR) INTEGER, INTENT (IN) :: IFLAG INTEGER, INTENT (INOUT) :: NERR INTEGER, SAVE :: NERR1 DATA NERR1/6/ IF (IFLAG==0) NERR = NERR1 IF (IFLAG==1) NERR1 = NERR END SUBROUTINE X04AAF gives, after entering gdb ./a.out and setting a break on the PRINT line in routine DUMMY (line number 7): Breakpoint 1, __x04aafe_aux_MOD_dummy () at x04aafe.f90:7 7 PRINT *, 'Hello',nerr Current language: auto; currently fortran (gdb) p nerr No symbol "nerr" in current context. -- Summary: Source with routine in CONTAINS section and a local variable: No symbol "nerr" in current context Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: toon at moene dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40998
next reply other threads:[~2009-08-07 12:53 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-08-07 12:53 toon at moene dot org [this message] 2009-08-07 13:57 ` [Bug fortran/40998] " burnus at gcc dot gnu dot org 2009-08-07 14:24 ` burnus at gcc dot gnu dot org 2009-08-07 14:32 ` burnus at gcc dot gnu dot org 2009-08-07 16:00 ` burnus at gcc dot gnu dot org 2009-08-07 16:58 ` toon at moene dot org 2009-12-04 23:43 ` dfranke at gcc dot gnu dot org 2010-03-20 9:40 ` toon at moene dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-40998-17017@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).