diff options
| author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-07-30 09:42:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 09:42:15 -0700 |
| commit | 539a6b500c9c7a808e68db32bf7965985202197f (patch) | |
| tree | 7299d8be96450e27048ae7cd703a9566894ca411 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 33c27f28d1cd05fd0a739498105927c1fba04666 (diff) | |
| download | llvm-539a6b500c9c7a808e68db32bf7965985202197f.zip llvm-539a6b500c9c7a808e68db32bf7965985202197f.tar.gz llvm-539a6b500c9c7a808e68db32bf7965985202197f.tar.bz2 | |
[flang] Detect use-before-decl errors on type parameters (#99947)
Ensure that type parameters are declared as such before being referenced
within the derived type definition. (Previously, such references would
resolve to symbols in the enclosing scope.)
This change causes the symbols for the type parameters to be created
when the TYPE statement is processed in name resolution. They are
TypeParamDetails symbols with no KIND/LEN attribute set, and they shadow
any symbols of the same name in the enclosing scope.
When the type parameter declarations are processed, the KIND/LEN
attributes are set. Any earlier reference to a type parameter with no
KIND/LEN attribute elicits an error.
Some members of TypeParamDetails have been retyped &/or renamed.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
