http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47797
Summary: Debug: Odd first break point for subroutine breakp w/ allocatables Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: wrong-debug Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org Blocks: 24546 (gdb) b MAIN__ Breakpoint 1 at 0x40079c: file test.f90, line 5. (gdb) run Starting program: /dev/shm/a.out Breakpoint 1, MAIN__ () at test.f90:6 5 end program test Expected a break point in the first line "program test" - or in some other line before "str1 =", e.g. if there is no "program" line. program test character(len=8) :: str1 character(len=:), allocatable :: str2 str1 = '1234' str2 = 'Hello World' end program test >From the dump w/o allocatables: test () [test.f90 : 6] { character(kind=1) str1[1:8]; >From the dump with allocatable (and w/o deferred string length): test () [test.f90 : 6] { character(kind=1) str1[1:8]; character(kind=1)[1:3] * str2; [test.f90 : 6] try { [test.f90 : 6] str2 = 0B; /* This is the break point. */ [test.f90 : 4] [test.f90 : 4] __builtin_memcpy /* str1 = '1234'. */