llvm-project/flang/lib
Tim Keith 82edd428f1 [flang] Fix check for distinguishable operators/assignments
Change how generic operators and assignments are checked for
distinguishable procedures. Because of how they are invoked, available
type-bound generics and normal generics all have to be considered
together. This is different from how generic names are checked.

Move common part of checking into DistinguishabilityHelper so that it
can be used in both cases after the appropriate procedures have been
added.

Cache result of Procedure::Characterize(Symbol) in a map in
CheckHelper so that we don't have to worry about passing the
characterized Procedures around or the cost of recomputing them.

Add MakeOpName() to construct names for defined operators and assignment
for using in error messages. This eliminates the need for different
messages in those cases.

When the procedures for a defined operator or assignment are undistinguishable,
include the type name in the error message, otherwise it may be ambiguous.

Add missing check that procedures for defined operators are functions
and that their dummy arguments are INTENT(IN) or VALUE.

Differential Revision: https://reviews.llvm.org/D87341
2020-09-10 07:22:55 -07:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal Remove unneeded RoundDefault enumerator, and fix spelling in comments 2020-08-03 16:14:24 -07:00
Evaluate [flang] Fix check for distinguishable operators/assignments 2020-09-10 07:22:55 -07:00
Lower [flang] Implement nonstandard OPEN statement CARRIAGECONTROL specifier 2020-09-02 13:07:45 -07:00
Optimizer [mlir] Remove the use of "kinds" from Attributes and Types 2020-08-18 16:20:14 -07:00
Parser [flang][OpenMP] Enhance parser support for atomic construct to OpenMP 5.0 2020-09-08 06:52:07 +05:30
Semantics [flang] Fix check for distinguishable operators/assignments 2020-09-10 07:22:55 -07:00
CMakeLists.txt [flang] A rework of the cmake build components for in and out of tree builds. 2020-03-26 18:17:04 +00:00