public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/98661] New: Valgrind errors during error recovery of invalid derived type declarations
@ 2021-01-13 20:02 anlauf at gcc dot gnu.org
  2021-01-13 20:03 ` [Bug fortran/98661] " anlauf at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-01-13 20:02 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2021-01-15 20:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 20:02 [Bug fortran/98661] New: Valgrind errors during error recovery of invalid derived type declarations anlauf at gcc dot gnu.org
2021-01-13 20:03 ` [Bug fortran/98661] " anlauf at gcc dot gnu.org
2021-01-13 20:26 ` dominiq at lps dot ens.fr
2021-01-13 20:47 ` anlauf at gcc dot gnu.org
2021-01-13 21:25 ` anlauf at gcc dot gnu.org
2021-01-14 18:14 ` cvs-commit at gcc dot gnu.org
2021-01-14 18:21 ` cvs-commit at gcc dot gnu.org
2021-01-14 18:24 ` anlauf at gcc dot gnu.org
2021-01-15 20:52 ` anlauf at gcc dot gnu.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).