We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb5f64a commit e2f6891Copy full SHA for e2f6891
flang/lib/Semantics/resolve-directives.cpp
@@ -846,7 +846,7 @@ bool AccAttributeVisitor::Pre(const parser::OpenACCRoutineConstruct &x) {
846
847
bool AccAttributeVisitor::Pre(const parser::AccBindClause &x) {
848
if (const auto *name{std::get_if<parser::Name>(&x.u)}) {
849
- if (!ResolveName(*name)) {
+ if (!ResolveName(*name, true)) {
850
context_.Say(name->source,
851
"No function or subroutine declared for '%s'"_err_en_US,
852
name->source);
flang/test/Semantics/OpenACC/acc-routine.f90
@@ -9,3 +9,7 @@ subroutine sub2(a)
9
real, dimension(10) :: a
10
call sub1(a)
11
end subroutine
12
+
13
+subroutine sub3()
14
+ !$acc routine bind(sub1)
15
+end subroutine
0 commit comments