<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75728>75728</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Flang] too much error messages at the compilation
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
k-arrows
</td>
</tr>
</table>
<pre>
Reproducer:
```console
$ cat test.f90
type t
complex::z
end type
complex,target,save::z(1)
type(t),target,save::obj
real,pointer::p=>obj%z%re
end
```
Compile with: `flang-new test.f90`
Output:
```console
error: loc("/tmp/test.f90":2:10): 'hlfir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'hlfir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'hlfir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'hlfir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'hlfir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
error: loc("/tmp/test.f90":2:10): 'fir.declare' op of array entity with a raw address base must have a shape operand that is a shape or shapeshift
```
This may not be a bug, but it is redundant for the user to see the same sentence multiple times.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsl8GOgzYQhp_GXEaJYAiBHDikSXOtVPUFBjOAtwYje9g0-_SVya7SrVbqpUekBMzw-_dnz4WfQjD9xFyr4hdVXBNaZHC-_nNH3rt7SBrXPurfefauXTR7lZ9VelXpWR3T50-7KTjLn1U8gCYB4SD77pQ-q_KYGeQ51m6cLf8VffLzx7PGUwtR8-nxTYcXId-zKLwEeueveVhlCk8ve4WVxMKPcte8PZWeySq8zM5M8txLfp5VflX5r1GDxYfCwn_j4Kn914b_-fbixtlYhruRQeVnUMe0szT1u4nvr0P4mvPbIvMi_3GE7L2LaGCdVlgpRIU3Ged4_TJEVPk5_rM0bjoujOVgO-P3LWtLnhWW4GZwHZD39ACexMhj5QQCT3egtvUcAjQUGMYlCAz0zkAQBpoZ3MyeYl8GEjDhVffPQRhMJxvxRrwRlxvvxrvxbrwb78a78f5vvD9-cf8xmAAjPWByAk30bZZe4QWaRcCslp7bZWppEuicBxkYlsAexEFgXp8DjQyBJ-FJR0grZrYMYkYO-6St8_aUnyjhOitTLKtDVlTJUKdVeaD0qJGOOeZVkXHRUNZRilWh05NOTI0p5hlmZZrnRVHts1OpywyrA2VtUXVaHVIeydi9te_j3vk-MSEsXJdFiVViqWEb1iCGuMaI2I7imvg66nfN0gd1SK0JEl4OYsSu6e22ziiuIM7BuOgB1obDyCFQzwFiLhsY9JpZSIybksXbehCZQwwleFN4640MS7PXblR4i4t83nazd2-sReFtZQ4Kbyv23wEAAP___YORQQ">