[llvm-bugs] [Bug 46334] New: Equivalence statement broken for integer case

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 15 15:11:54 PDT 2020


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

            Bug ID: 46334
           Summary: Equivalence statement broken for integer case
           Product: flang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedbugs at nondot.org
          Reporter: naromero at anl.gov
                CC: David.Truby at arm.com, jperier at nvidia.com,
                    kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
                    sscalpone at nvidia.com

Created attachment 23617
  --> https://bugs.llvm.org/attachment.cgi?id=23617&action=edit
integer equivalence test case from NWChem

This is a reduced test case from the DOE NWChem code.

[naromero at naromero-desktop bugs]$ pgf90 -o testequivalence.x -i8
testequivalence.f
[naromero at naromero-desktop bugs]$ ./testequivalence.x 
  size of  longw                         8
  size of shortw                         8
FORTRAN STOP

[naromero at naromero-desktop bugs]$ f18 -o testequivalence.x -i8 
testequivalence.f
testequivalence.f:4:26: error: Equivalence set cannot contain 'longw' that is
numeric sequence type and 'shortw' that is not
        equivalence (longw,shortw)
                           ^^^^^^
f18: semantic errors in testequivalence.f

It looks like there was a bugzilla issue on equivalence already:
https://bugs.llvm.org/show_bug.cgi?id=1971

but it might have been fixed with a suboptimal hack.

-- 
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/20200615/0fef625c/attachment.html>


More information about the llvm-bugs mailing list