Skip to content

Commit 7ff4152

Browse files
committed
add quotes around object name
1 parent ccaa50f commit 7ff4152

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4550,7 +4550,7 @@ void OmpStructureChecker::CheckIfContiguous(const parser::OmpObject &object) {
45504550
const parser::Name *name{GetObjectName(object)};
45514551
assert(name && "Expecting name component");
45524552
context_.Say(name->source,
4553-
"Reference to %s must be a contiguous object"_err_en_US,
4553+
"Reference to '%s' must be a contiguous object"_err_en_US,
45544554
name->ToString());
45554555
}
45564556
}

flang/test/Semantics/OpenMP/from-clause-v45.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
subroutine f00(x)
44
integer :: x(10)
5-
!ERROR: Reference to x must be a contiguous object
5+
!ERROR: Reference to 'x' must be a contiguous object
66
!$omp target update from(x(1:10:2))
77
end
88

flang/test/Semantics/OpenMP/reduction06.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ program omp_reduction
88
integer :: k = 10
99
integer :: a(10), b(10,10,10)
1010

11-
!ERROR: Reference to a must be a contiguous object
11+
!ERROR: Reference to 'a' must be a contiguous object
1212
!$omp parallel do reduction(+:a(1:10:3))
1313
do i = 1, 10
1414
k = k + 1
1515
end do
1616
!$omp end parallel do
1717

18-
!ERROR: Reference to b must be a contiguous object
18+
!ERROR: Reference to 'b' must be a contiguous object
1919
!$omp parallel do reduction(+:b(1:10:3,1:8:1,1:5:1))
2020
do i = 1, 10
2121
k = k + 1
2222
end do
2323
!$omp end parallel do
2424

25-
!ERROR: Reference to b must be a contiguous object
25+
!ERROR: Reference to 'b' must be a contiguous object
2626
!$omp parallel do reduction(+:b(1:10:1,1:8:2,1:5:1))
2727
do i = 1, 10
2828
k = k + 1

flang/test/Semantics/OpenMP/to-clause-v45.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
subroutine f00(x)
44
integer :: x(10)
5-
!ERROR: Reference to x must be a contiguous object
5+
!ERROR: Reference to 'x' must be a contiguous object
66
!$omp target update to(x(1:10:2))
77
end
88

0 commit comments

Comments
 (0)