[Bug fortran/25134] New: Internal error: "Assertion `!value->lazy' failed." in associate

findessp at yandex dot ru sourceware-bugzilla@sourceware.org
Sat Oct 26 13:43:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25134

            Bug ID: 25134
           Summary: Internal error: "Assertion `!value->lazy' failed." in
                    associate
           Product: gdb
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: fortran
          Assignee: unassigned at sourceware dot org
          Reporter: findessp at yandex dot ru
  Target Milestone: ---

Hello,

I have the following small program that I compile with gfortran 8.2.0:

    1  program not_all
    2    implicit none
    3    type test_type
    4       integer, allocatable, dimension(:) :: ab_int
    5    end type test_type
    6
    7    type(test_type) :: tt
    8    associate(t => tt)
    9      write(*,*) "do something in associate"
   10    end associate
   11  end program not_all


When doing `i locals` at a breakpoint on line 9, I get:

value.c:388: internal-error: int value_bits_any_optimized_out(const value*,
int, int): Assertion `!value->lazy' failed. A problem internal to GDB has been
detected

This also happens, unsurprisingly perhaps, if ab_int has the pointer attribute.
If I allocate ab_int beforehand, it works as expected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list