diff options
| author | Riccardo Bertossa <rbertoss@sissa.it> | 2020-09-26 12:41:20 -0700 |
|---|---|---|
| committer | Tim Keith <tkeith@nvidia.com> | 2020-09-26 12:42:14 -0700 |
| commit | c2921d148e7b4e61794fa5498746ec0840861cf8 (patch) | |
| tree | 1fd3b4b35701b7236ba035b8ff1100ddaafecc5c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 98c5eebcf786ee970c57a752ac3dfededa90501a (diff) | |
[flang] SAVE statement should not apply to nested scoping units
SAVE statement, according to 8.6.14, must apply to the same scoping
unit, that excludes nested scoping units. For example, if the SAVE
statement is found in a MODULE, the functions contained in that module
should not inherit the SAVE attribute. I think that the code was doing
this, failing the following source:
```
MODULE pippo
SAVE
CONTAINS
PURE FUNCTION fft_stick_index( )
IMPLICIT NONE
INTEGER :: fft_stick_index
INTEGER :: mc !error: A pure subprogram may not have a variable with the SAVE attribute
END FUNCTION
END MODULE
```
Differential Revision: https://reviews.llvm.org/D88279
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
