[llvm-bugs] [Bug 51835] New: Implied shape only partially implemented

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 13 07:28:27 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51835

            Bug ID: 51835
           Summary: Implied shape only partially implemented
           Product: flang
           Version: 12.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedbugs at nondot.org
          Reporter: anlauf at gmx.de
                CC: David.Truby at arm.com, jperier at nvidia.com,
                    kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
                    sscalpone at nvidia.com

Hello,

the following code compiles and works fine with GNU, Intel, NVIDIA, and NAG.

It is however not fully working with flang-12 or flang-13 that comes with
AMD ROCm:

  integer,       parameter :: list1(*)     = [1,2]             ! ok
  character(1),  parameter :: gnss1(*)     = ["G","R","E","C"] ! ok
  integer,       parameter :: list2(42:*)  = [1,2]             ! fails
  character(1),  parameter :: gnss2(401:*) = ["G","R","E","C"] ! fails
  print *, gnss2
end

It would be nice to have this available in a future LLVM release.

Thanks,
Harald

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210913/e955046f/attachment.html>


More information about the llvm-bugs mailing list