Issue 75728
Summary [Flang] too much error messages at the compilation
Labels flang
Assignees
Reporter k-arrows
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to