Skip to content

Fix detection of private symbols in Import Nodes

Rémi Kazeroni requested to merge fix_private into main

At the moment, Loki does not take access control attributes into account if specified in list of private symbols.

  • Private symbols correctly detected :
MODULE some_mod
  IMPLICIT NONE
  PRIVATE 
  INTEGER, :: myvar
END MODULE some_mod
  • Private symbols correctly detected :
MODULE some_mod
  IMPLICIT NONE
  INTEGER, PRIVATE :: myvar
END MODULE some_mod
  • Private symbols NOT correctly detected :
MODULE some_mod
  IMPLICIT NONE
  PRIVATE :: myvar
  INTEGER :: myvar
END MODULE some_mod

This is because module.private_access_spec is not used to define the symbol.type.private attribute

This MR fixes this locally.

Merge request reports

Loading