[all-commits] [llvm/llvm-project] dd3eb3: [flang] Substrings with lower bound greater than u...
Pete Steinfeld via All-commits
all-commits at lists.llvm.org
Wed Sep 16 14:57:32 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: dd3eb3f33239b23a12dd8864ae236390adf79550
https://github.com/llvm/llvm-project/commit/dd3eb3f33239b23a12dd8864ae236390adf79550
Author: Peter Steinfeld <psteinfeld at nvidia.com>
Date: 2020-09-16 (Wed, 16 Sep 2020)
Changed paths:
M flang/lib/Evaluate/variable.cpp
M flang/test/Semantics/resolve49.f90
Log Message:
-----------
[flang] Substrings with lower bound greater than upper bound
According to section 9.4.1, paragraph 3,
If the starting point is greater than the ending point, the substring has
length zero
But the compilers code for substring processing was failing a call to `CHECK()`
in this case. I fixed this by just setting the number of items in the
resulting string to 0 for this situation.
Differential Revision: https://reviews.llvm.org/D87799
More information about the All-commits
mailing list