[flang-commits] [flang] 89bbaf3 - [flang] Fix another crash from another fuzzer test. (#122562)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 14 12:57:13 PST 2025


Author: Peter Klausler
Date: 2025-01-14T12:57:10-08:00
New Revision: 89bbaf3cf2e5706acf46e30ac19e23a58db2e9f9

URL: https://github.com/llvm/llvm-project/commit/89bbaf3cf2e5706acf46e30ac19e23a58db2e9f9
DIFF: https://github.com/llvm/llvm-project/commit/89bbaf3cf2e5706acf46e30ac19e23a58db2e9f9.diff

LOG: [flang] Fix another crash from another fuzzer test. (#122562)

Fixes https://github.com/llvm/llvm-project/issues/122045.

Added: 
    flang/test/Semantics/bug122045.f90

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/flang/test/Semantics/bug122045.f90 b/flang/test/Semantics/bug122045.f90
new file mode 100644
index 00000000000000..c68d2bbc142142
--- /dev/null
+++ b/flang/test/Semantics/bug122045.f90
@@ -0,0 +1,6 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+! ERROR: Must be a scalar value, but is a rank-1 array
+! ERROR: Shape of initialized object 'a' must be constant
+complex:: a(n) = SUM([1])
+INTEGER, parameter :: n(2) = [2,2]
+end


        


More information about the flang-commits mailing list