Skip to content

Entity-style variable initializations are not generated #19

Open
@ppenzin

Description

@ppenzin

It does not look like variable initializations are generated, at least from program-level variables.

$ cat c.f95 
program c
  integer, parameter :: x = 10
  integer :: y = x + 1
  integer :: z = 15

  print *,x
  print *,y
  print *,z
end program
$ fort c.f95 
$ ./a.out 
10
8
14622032

IR dump shows allocation, but not initialization.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions