<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60274>60274</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] semantic error for valid volatile uses
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
k-arrows
</td>
</tr>
</table>
<pre>
Test code:
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gfortran.dg/volatile9.f90
Result (gfortran vs flang-new)
```console
$ gfortran -c volatile9.f90
$
$ flang-new -c volatile9.f90
error: Semantic errors in volatile9.f90
./volatile9.f90:26:18: error: VOLATILE attribute was already specified on 'v13'
volatile :: v13
^^^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Ut1unDwQfRpzY4HMmOXnggs-JUifFKlSG_Xe4DHr1uDIYzbK21fAZrdR0yILa8ZzzrFnjiKy04LYstN_7PSQqDWefWh_pioE_0rJ4PVb-4wU-eg1Mtkx8cBEd47xhbYIegb9ZON5HbLRz1swjulsQ_DhCBj0g_MDg35WFPGejUiRVhtxyxgfYlBLpicG_cU7Fa3DJjONOASP_1ek1UXOoH4H8Atx49QypQu-Mmiu1aU41ugX8g6vWSj4DZeO_DMZKH7X2xA39r9AcH-q7Pg3nNUS7cj3DHG7fFae_fE-2UHJZJfXG8mN7fuXp-75_6dHrmIMdlgj8ldFXLmASr9xesHRGoua-4UzqC65ZFAdEvz43lX4NifZ8a3kOGenx-v62K1Et1I3slEJtnlZFaWQZV0m5zavGyVAFTmqoSxlJQwMUuvK1Lk5CVMktgUBUuRQgCxyKDNlmsaYCkGWGk2tWSFwVtZlzl3mzIcpsUQrtqWAqkicGtDR7kGArdX7IQPYLBnaDZMO60SsEM5SpDtLtNHt5t3HxE4PnD6MgRsf-EU5q-_9WAkpWYNr_-HiTeC6pS_B_8AxMuj3axGDfr_2rwAAAP__WEr-gQ">