public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39791]  New: Bad Dwarf debug information from gfortran for a character string.
@ 2009-04-17  1:45 david dot sagan at gmail dot com
  2009-04-17  4:40 ` [Bug fortran/39791] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: david dot sagan at gmail dot com @ 2009-04-17  1:45 UTC (permalink / raw)
  To: gcc-bugs

A simple example shows the problem:

program test
  implicit none
  integer i
  character(16) abc
  abc = "abc"
  i = 7
end program

Compile with:
  gfortran -g -O0 test.f90

Run with gdb and "whatis abc" produces:
  type = character(kind=1) (16)

That is, gdb thinks that the variable abc is an array of length 16 with each
component in the array being a singe character. I verified with the totalview
debugger that the problem was with the compiler and not gdb. Interestingly
enough, version 4.1.1 does *not* have this problem. This bug definitely makes
debugging a program more painful.


-- 
           Summary: Bad Dwarf debug information from gfortran for a
                    character string.
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: david dot sagan at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39791


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-05-11  9:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-17  1:45 [Bug fortran/39791] New: Bad Dwarf debug information from gfortran for a character string david dot sagan at gmail dot com
2009-04-17  4:40 ` [Bug fortran/39791] " burnus at gcc dot gnu dot org
2009-04-21 17:45 ` [Bug fortran/39791] [4.3 Regression] " pinskia at gcc dot gnu dot org
2009-04-22 13:35 ` rguenth at gcc dot gnu dot org
2009-04-24  7:19 ` burnus at gcc dot gnu dot org
2009-04-24  7:25 ` burnus at gcc dot gnu dot org
2009-05-11  9:17 ` burnus at gcc dot gnu dot org

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).