https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98661

            Bug ID: 98661
           Summary: Valgrind errors during error recovery of invalid
                    derived type declarations
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

The following invalid code exhibits valgrind issues during error recovery
(based on charlen_03.f90 which was removed from the testsuite, see PR78746)

program p
  implicit none
  type t
     character(:), allocatable :: x(n) ! { dg-error "must have a deferred
shape" }
  end type
end
! { dg-excess-errors "must be of INTEGER type" }

and similarly with "implicit none" commented out.

Simpler versions, with "character(:)" replaced by "character(1)",
produce similar valgrind output, so may be easier to debug.

Reply via email to