Skip to content

[flang] Missing diagnostic on named constant appearing in namelist #138937

@DanielCChen

Description

@DanielCChen

Consider the following code:

module m
   type base
      integer :: i
   end type

end module

program parameter001d
   use m

   integer :: stat
   character(200) :: msg = ''

   type(base), parameter :: b3 = base(111)
   namelist /nml/ b3

end program

b3 is a named constant, it shall not appear in a namelist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flang:frontendquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions