<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/66621>66621</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            flang compiling error: struct noalias byval
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          renren7111
      </td>
    </tr>
</table>

<pre>
    1. error information:
/tmp/iduration-95432b.ll:1399:63: error: expected '('
declare void @cxios_duration_neg(%struct.xios_duration.5* sret, %struct.xios_duration.5* noalias byval (%struct.xios_duration.5 ))

2. define function cxios_duration_neg:
  cxios_duration cxios_duration_neg(cxios_duration dur_c)
  TRY
  {
 xios::CDuration dur( dur_c.year, dur_c.month, dur_c.day, dur_c.hour, dur_c.minute, dur_c.second, dur_c.timestep );
    xios::CDuration res = -dur;
    return { res.year, res.month, res.day, res.hour, res.minute, res.second, res.timestep };
  }
  CATCH_DUMP_STACK
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k1-L4yAUxT-NeZEGo_nTPOQh01IWloVld_Zhn4rRm9TFaFEzTL_9Yto0naEMFHsOnnv9aZR7rwYD0KDiBRX7hE_hZF3jwDgwVZZlSWflpclSDM5Zh5XprRt5UNYg1iKyR6RF9BDGM6IHJSc3T23qIme0S7VGrM1YXSPWlgyx9tplFu9nEAEkRrRCdBvHuZkEobkD_GaVxCgn4l1Zf1waHw0Mc7rwwU0ipB9m0wLRFnsHAdEd_jJkLNeKe9xd3rjGX7XEiNbxd93qPNIUS-iVAdxPRsQYfoK5HA_-NPksS7efMnJyR3FfFuPXX38XiaqXm4wlcRnW7vYPhYhur_XpBbiLR3F1ozXhtFrJL6s52ekxqcwUYPUehDVy9UGN4AOc57NhCw7GT4kceIzYHm8i2mPYQZicifuJmTts1HfUaG6gUS6Yc-YOGd2KGN0KWO0f1ozuJnft6-7bcf_nx8_j79d29z2RDZM1q3kCTVbWBWGkLOvk1LCC93lR8IrkuZQZq_Nc9LIjFWS8EmWeqIYSykidbUldZKROeS862MpCVJT0RS9RTmDkSqdav42pdUOivJ-gKcuSZonmHWi_vD_XxNCmmwaPcqKVD34tCypoaHrNzYCFHc9KKzOsT-p6fz9e7WRyujmFcJ4_Cz0gehhUOE1dKuyI6CH2vv1tzs7-AxHiQ458HtHDjPg_AAD__851UZc">