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

            Bug ID: 96655
           Summary: [OOP] CLASS dummy arguments: Bogus "Duplicate OPTIONAL
                    attribute specified"
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

The following fails with:

Duplicate OPTIONAL attribute specified

subroutine sub2(val1a, val4)
  class(*), allocatable :: val1a, val3
  optional :: val1a, val3
end

Reply via email to