From f3f9c22fb303b63f8ead7bbd60c2bf2a1de3578d Mon Sep 17 00:00:00 2001 From: c8ef Date: Tue, 7 Oct 2025 22:19:52 +0800 Subject: [PATCH] [flang] revise crash msg for GeneralCharFunc --- flang-rt/lib/runtime/character.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flang-rt/lib/runtime/character.cpp b/flang-rt/lib/runtime/character.cpp index 0f9f419ff0b7b..c9ac55736d427 100644 --- a/flang-rt/lib/runtime/character.cpp +++ b/flang-rt/lib/runtime/character.cpp @@ -428,7 +428,8 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result, result.GetDimension(j).SetBounds(1, ub[j]); } if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) { - terminator.Crash("SCAN/VERIFY: could not allocate storage for result"); + terminator.Crash( + "INDEX/SCAN/VERIFY: could not allocate storage for result"); } std::size_t stringElementChars{string.ElementBytes() >> shift}; std::size_t argElementChars{arg.ElementBytes() >> shift};