Skip to content

Commit f1acf86

Browse files
committed
Update comments
1 parent 8a2666c commit f1acf86

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

flang/lib/Semantics/resolve-names.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,9 @@ class OmpVisitor : public virtual DeclarationVisitor {
16611661
}
16621662
bool Pre(const parser::OpenMPDeclarativeConstruct &x) {
16631663
AddOmpSourceRange(x.source);
1664+
// Without skipping implicit typing, declarative constructs
1665+
// can implicitly declare variables instead of only using the
1666+
// ones already declared in the Fortran sources.
16641667
SkipImplicitTyping(true);
16651668
return true;
16661669
}

flang/test/Semantics/OpenMP/declare-simd-linear.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2-
! Test declare simd with linear clause
2+
! Test declare simd with linear clause does not cause an implicit declaration of i
33

44
module mod
55
contains

0 commit comments

Comments
 (0)