llvm-project/flang/lib
Valentin Clement 85725a67c7 [Flang][OpenMP] Avoid abort when collapse clause value is negative
Summary:
If the value in the collapse close is negative f18 abort without the correct error message. This PR change the size_t in name resolution to a int64_t and check appropriately for negative or zero before the privatization of induction variable.
The correct error is then catch by the OpenMP structure check.

This diff is migrated from the GitHub pull request https://github.com/flang-compiler/f18/pull/1098

Reviewers: ichoyjx, jdoerfert, sscalpone, DavidTruby

Reviewed By: ichoyjx, sscalpone, DavidTruby

Subscribers: sscalpone, klausler, yaxunl, guansong, llvm-commits

Tags: #llvm, #flang

Differential Revision: https://reviews.llvm.org/D77821
2020-05-14 21:37:25 -04:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal [flang] Fix x87 binary->decimal 2020-05-04 12:04:08 -07:00
Evaluate [flang]Semantics for SELECT RANK. 2020-05-08 08:52:31 +05:30
Lower [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Optimizer [mlir] Add NamedAttrList 2020-05-07 12:33:36 -07:00
Parser [flang] Fix handling of files without terminating newlines. 2020-04-27 12:40:22 +01:00
Semantics [Flang][OpenMP] Avoid abort when collapse clause value is negative 2020-05-14 21:37:25 -04: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