llvm-project/flang/lib
Peter Steinfeld 3ad9826dcd [flang] Fix the extent calculation when upper bounds are less than lower bounds
When the upper bound is less than the lower bound, the extent is zero.  This is
specified in section 8.5.8.2, paragraph 3.

Note that similar problems exist in the lowering code.  This change only fixes
the problem for the front end.

I also added a test.

Differential Revision: https://reviews.llvm.org/D107832
2021-08-10 10:34:22 -07:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal [flang] runtime: For Fw.d formatting, don't oscillate forever 2021-08-04 12:19:23 -07:00
Evaluate [flang] Fix the extent calculation when upper bounds are less than lower bounds 2021-08-10 10:34:22 -07:00
Frontend [flang] Lift -Werror checks into local functions 2021-08-06 12:43:19 -06:00
FrontendTool [flang][nfc] Fix variable names in `FrontendOptions` & `PreprocessorOptions` 2021-08-02 10:08:31 +00:00
Lower [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
Optimizer [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
Parser [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
Semantics [flang] Always create HostAssocDetails for host object symbols with UseDetails 2021-08-10 12:38:19 +02:00
CMakeLists.txt [flang][driver] Delete `f18` (i.e. the old Flang driver) 2021-08-05 12:57:15 +00:00