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

    <tr>
        <th>Summary</th>
        <td>
            [FLANG] Reduction of complex with logical operation causes ICE.
        </td>
    </tr>

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

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

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

<pre>
    This program causes the compiler produce an internal error, when it ought to give an error at an earlier stage:
```
program main
  complex*8 a

 !$omp parallel reduction(.and. : a)
  !$omp end parallel
end program main
```

The error is:
```error: loc("/data/stuff/fortran/omp-complex-and.f90":4:9): 'fir.convert' op invalid type conversion
error: verification of lowering to FIR failed
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kttunDAQhp_G3IwWscP5gguaLVWkqBdRXmDWDODK2Mg2m-btK1i2kRqpEuLgOfB__wx5r0bD3Ij8m8gvEa1hsq554cU6kmTCpOTqo6vtP5q3SXlYnB0dzSBp9ewhTAzSzovS7LZYv0oGMqBMYGdIAztnncAneJ_YgApg13EKECyM6ran7hlAYX8npxU78IFGFmkrkotIWlEkx7V_PiTMpMz9BHYNmn8LbCugo-oeEngWmNl5gYUcac0aHPerDMoagVVMpo9BpC2QwPrR7rOITf-38B7dT75I-Efj_f428YGn_FeauzVpC9pKgZVAFNj1FEhg58M6DAK7wbrgyAjs7LycDsrTpnmok60ibTORtvWmPd1gy0G5WFpzYxcElmAXUOZGWvUQPpZtWFvIb_B3moeIGzs1KEmbL2AH0PadnTLjNqru-RUGUpr7_8BGfZP2dVpTxM25POdVlad1HU3NuaBCXmWBGRYS86ss8qEohyEv6Vqeqz5SDSaYJfm5OFdZndcxViUmeV3mtZRMBYss4ZmUjrW-zbF1Y6S8X7mpMcuSSNOVtd83GHHQZMbNmPwSuWbLP13X0Yss0coH_9khqKD3te9e2p8_RH6B18dabPiH1fCuwgTajkqSBruwuxt0rP_z0_c4Wp1uphCWfcTYCexGFab1Gks7C-y2Px6P0-LsL5ZBYLcDeIHdzvAnAAD__w28GSc">