llvm-project/flang/lib
Tim Keith 824d198e31 [flang] Create symbols for args of separate-module-subprogram
A separate-module-subprogram is declared as `module procedure ...`
and gets its characteristics from the declaration of that name as
a separate module procedure. When we encounter one, we need to create
symbols in the new subprogram scope for the dummy arguments and
function return (if any).

The failure to create these symbols led to the bug in issue flang-compiler/f18#1054:
when a dummy argument was referenced, the compiler interpreted it as
an implicit declaration because there was no symbol for the argument.

Fixes flang-compiler/f18#1054.

Original-commit: flang-compiler/f18@4d3c4bac84
Reviewed-on: https://github.com/flang-compiler/f18/pull/1080
Tree-same-pre-rewrite: false
2020-03-17 16:01:59 -07:00
..
Common [flang] [LLVMify F18] Compiler module folders should have capitalised names (flang-compiler/f18#980) 2020-02-25 07:11:52 -08:00
Decimal [flang] Fix layout of 128-bit IEEE-754 floating-point values 2020-02-26 08:23:44 -08:00
Evaluate [flang] Do not emit a prefix for a default-kind character constant in AsFortran 2020-03-17 12:35:31 -07:00
Lower [flang] [LLVMify F18] Compiler module folders should have capitalised names (flang-compiler/f18#980) 2020-02-25 07:11:52 -08:00
Optimizer [flang] Add Fortran IR (FIR) MLIR dialect implementation (flang-compiler/f18#1035) 2020-03-11 21:47:22 -07:00
Parser [flang] Use hash table for UnitMap, avoid C++ STL binary dependence 2020-03-11 13:23:39 -07:00
Semantics [flang] Create symbols for args of separate-module-subprogram 2020-03-17 16:01:59 -07:00
CMakeLists.txt [flang] Add Fortran IR (FIR) MLIR dialect implementation (flang-compiler/f18#1035) 2020-03-11 21:47:22 -07:00