[llvm-bugs] [Bug 47281] New: case statement with macro leads to compile-time error
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Fri Aug 21 22:48:52 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=47281
            Bug ID: 47281
           Summary: case statement with macro leads to compile-time error
           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 23883
  --> https://bugs.llvm.org/attachment.cgi?id=23883&action=edit
case statement with macro from NWChem
This is a reduced test case from NWChem.
gfortran and pgi can compile this reduced test case.
If you comment out these lines:
              case (NWXC_DISP_D3)
                 write (*,*) "hello"
The test case compiles.
Something about the macro + case statement throws the Flang front-end off.
-- 
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/20200822/10f2ced4/attachment-0001.html>
    
    
More information about the llvm-bugs
mailing list