<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117372>117372</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Flang] Failed to compile CHARACTER type declaration statement for array
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
flang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DanielCChen
</td>
</tr>
</table>
<pre>
Flang failed to compile the following code
```
character cv3*(3)(3)
end
>flang-new -ffree-form ch1.f
error: Could not parse ch1.f
./ch1.f:1:18: error: expected end of statement
character cc*(3)(3)
^
./ch1.f:1:1: in the context: specification construct
character cc*(3)(3)
^
./ch1.f:1:1: in the context: declaration construct
character cc*(3)(3)
^
./ch1.f:1:1: in the context: specification part
character cc*(3)(3)
^
./ch1.f:1:1: in the context: main program
character cc*(3)(3)
^
```
gfortran issues an error also.
XLF and ifort both compile it successfully.
The code seems standard conforming to me.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE9vpDoM_zThYg0Cw3RmDhx4M0Xv8E5VD-8aEgeyCglKQtv59qsw03_brbS7XQSOQmz__HNs8xD0YIkatv2HbU8ZX-LofHPiVpM5HkeyWe_kuekMtwMorg1JiA6Em2ZtCOJIoJwx7lHbAYSTxIoTK9qrvCmu77oVI_dcRPIgHiqGLcN9xfDwvKw6ZOU7D29ldatSGBtLj7BRyhNtlPMTiLHM1dXce-dZ1cLRLUaCdRFm7gO91ckZdpdt1Zbp2yeDF0t6mklEkkBWglMQIo80kY0Xa3hlAUJ8wgI-Pmx7-wl8AtV2TaVwNtJTTH_CTEIrLXjUzqaDEP0inoP4xSh-F1SSMNx_BfJrNGfufwL3FwlOXFuYvRs8n_4M6IeavshBOR89t6BDWCgAt5d6Am6Cyy86___XAbcSdNKF3sXxpYt0hLAIQSGoxZhzDheL-zV2SRCIppAK0UruZeKT6j51XHQwUZ7JppKH6sAzaspdhVVxs6_KbGyKA-2UONQoZX3okWNf7-seZa242HG1y3SDBdZliYgFFlWZcyz6YruT4obwUNfI6oImrk1uzMOUOz9kK8WmLHfVDjPDezJhnR6I_TIwRIZHhrh2Kqta5VPyrUwH21Pmm-Rn0y9DYHVhdIjh1XPU0ayTaJ02bHuC7sPAOf7b3rXH-9s7iOeZ3hXsS6OCSpn3np-zxZtmjHEOrGoZdgy7Qcdx6XPhJoZdgr4um9m7byQiw-5yiQy7K8mHBr8HAAD__-RMhmA">