[flang] [llvm] [flang] implement `split` for fortran 2023 (PR #161484)

Tom Eccles via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 03:03:37 PDT 2025


================
@@ -570,6 +570,30 @@ static RT_API_ATTRS void MaxMin(Descriptor &accumulator, const Descriptor &x,
   }
 }
 
+template <typename CHAR>
+inline RT_API_ATTRS std::size_t Split(const CHAR *x, std::size_t xLen,
+    const CHAR *set, std::size_t setLen, std::size_t pos, bool back) {
----------------
tblah wrote:

I would prefer to avoid relying on overflow behaviour here as it can be easily avoided.

https://github.com/llvm/llvm-project/pull/161484


More information about the llvm-commits mailing list