<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149771>149771</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] external must conflict with intrinsic and vice versa
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
foxtran
</td>
</tr>
</table>
<pre>
Having the following code, LLVM flang must produce error because of conflicting `external` and `intrinsic` type parameters.
```
real function eval(x, n)
real :: x
integer :: n
real, external, intrinsic :: exp
eval = 1.0
end function eval
```
However, it does not: https://godbolt.org/z/xs69WvK58
LLVM version:
```
flang version 22.0.0git (https://github.com/llvm/llvm-project.git 0bb1e048453ed23d988354b86794144e631da03b)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/compiler-explorer/clang-llvmflang-trunk-20250721/bin
Compiler returned: 0
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU0mPnDwQ_TXmYoGMzXrg0N-00HzK5BYlx8jggnbGbSMvNJNfH5leMjO3SJZaXbxX9Wp53Dk5a4AOlf-h8pjw4E_GdpPZvOU6GYx46575KvWM_QnwZJQyl_hvNAIQfcIvL9-_4klxPeNzcB4v1ogwAgZrjcUDjDw4wGbCo9GTkqOPZFQR2DxYzRWqCOZaxJDU3krt5Bhj_m0BvHDLz-DBugyRQ3wVuT1ysMAVnoIevTQaw8oVos0WNWlEW0QOGO8QxA6IHfC2R6T2MIO9B_UDFnkPTfQJP8TcobAtOzgWwogdcZ6RqyjQ4pOOj0IROTybC6xg98QeCwMOa-Nj2pP3i4slaI9oPxsxGOUzY2dE-9-I9pur2h_rl7K5JtrHvYJ10ujI-ljpuofbZ0xpRjIyS48RbT7Vkf4Uhmw0Z0R7pdb7T7pY8wtGn0UWGYYcSNEUJQNBmWibhpXF0FR1W-RFARXLBSdsuE77G7cz7C1tTfWzKtKgX7W56FRJHbZ01iGCTha4wGcjQEXoYpyMi_lfO8-VAnGUNsYR7c3iEe1Hc16kApvCtihj4wj7MXaZRrl7v6m3Qb-mlNCS1DRHtB9k3OvTjYot-GA1iJiYvJ9YIjomWtbyBLq8LhlpGGUkOXWiHho-AYGxrtpciInytuWCDFNTwsCmRHb3cqRmrCQZnwoBVdHStskbxkpUEDhzqbIoM64zkc4F6PKires8UXwA5XbTUbp3gSiN_rPdvoYhzA4VREnn3d8UXnq1O_XKKI-Pi716724xfJH-9O6Co79WOcJ-GTwJVnX_dg6I9rt8h2h_62Dt6J8AAAD__98ZVLo">