<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Transfer can be constant value, but not now"
   href="https://bugs.llvm.org/show_bug.cgi?id=47666">47666</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Transfer can be constant value, but not now
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>flang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>i.s.ger@ya.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have tried to compile the following code: 

real(8), parameter :: zero_int = transfer(0,0D0)
end

And I have got message:

:1:34: error: Must be a constant value
  real(8), parameter :: zero_int = transfer(0,0D0)
                                   ^^^^^^^^^^^^^^^

But in reality, it is a constant value. ifort and gcc can compile this code
(See here: <a href="https://godbolt.org/z/r83ves">https://godbolt.org/z/r83ves</a>)

Locally tested version is commit d2166076b882e38becf3657ea830ffd2b6a5695e of
llvm-project.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>