[flang-commits] [flang] [flang][debug] Handle allocatable strings. (PR #95906)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Mon Jun 24 09:45:07 PDT 2024


================
@@ -192,10 +194,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
 
 mlir::LLVM::DITypeAttr DebugTypeGenerator::convertCharacterType(
     fir::CharacterType charTy, mlir::LLVM::DIFileAttr fileAttr,
-    mlir::LLVM::DIScopeAttr scope, mlir::Location loc) {
+    mlir::LLVM::DIScopeAttr scope, mlir::Location loc, bool allocatable) {
----------------
abidh wrote:

This is indeed a tricky case. The issue here is that same descriptor is need to generate the length expression of the array type and also its members which are character types. I am not sure at the moment the best way to handle it. I tried this case with gfortran and classic flang and I could not get the correct value of `c` in GDB for both of them. I will open a ticket to track this issue.

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


More information about the flang-commits mailing list