We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2666c commit f1acf86Copy full SHA for f1acf86
flang/lib/Semantics/resolve-names.cpp
@@ -1661,6 +1661,9 @@ class OmpVisitor : public virtual DeclarationVisitor {
1661
}
1662
bool Pre(const parser::OpenMPDeclarativeConstruct &x) {
1663
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.
1667
SkipImplicitTyping(true);
1668
return true;
1669
flang/test/Semantics/OpenMP/declare-simd-linear.f90
@@ -1,5 +1,5 @@
1
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2
-! Test declare simd with linear clause
+! Test declare simd with linear clause does not cause an implicit declaration of i
3
4
module mod
5
contains
0 commit comments