Skip to content

Commit 89bbaf3

Browse files
authored
[flang] Fix another crash from another fuzzer test. (#122562)
Fixes #122045.
1 parent ebec4d6 commit 89bbaf3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flang/test/Semantics/bug122045.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
! RUN: %python %S/test_errors.py %s %flang_fc1
2+
! ERROR: Must be a scalar value, but is a rank-1 array
3+
! ERROR: Shape of initialized object 'a' must be constant
4+
complex:: a(n) = SUM([1])
5+
INTEGER, parameter :: n(2) = [2,2]
6+
end

0 commit comments

Comments
 (0)