1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! 10.2.3.1(2) All masks and LHS of assignments in a WHERE must conform
5 integer :: a1(10), a2(10)
6 logical :: m1(10), m2(5,5)
12 !ERROR: Must have rank 1 to match prior mask or assignment of WHERE construct
21 logical, allocatable
:: m1(:), m4(:,:)
22 logical :: m2(2), m3(3)
26 !ERROR: Dimension 1 must have extent 2 to match prior mask or assignment of WHERE construct
29 !ERROR: Must have rank 1 to match prior mask or assignment of WHERE construct
36 !ERROR: Dimension 1 must have extent 3 to match prior mask or assignment of WHERE construct
42 logical, allocatable
:: m1(:,:)
44 real :: x(4,4), y(4,4)
45 real :: a(4,5), b(4,5)
48 !ERROR: Dimension 2 must have extent 4 to match prior mask or assignment of WHERE construct
50 !ERROR: Dimension 2 must have extent 4 to match prior mask or assignment of WHERE construct