File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8958,9 +8958,9 @@ void ResolveNamesVisitor::FinishSpecificationPart(
8958
8958
? currScope ().symbol ()->detailsIf <SubprogramDetails>()
8959
8959
: nullptr }) {
8960
8960
if (auto attrs{subp->cudaSubprogramAttrs ()}) {
8961
- if (*attrs ! = common::CUDASubprogramAttrs::Device ||
8962
- *attrs ! = common::CUDASubprogramAttrs::Global ||
8963
- *attrs ! = common::CUDASubprogramAttrs::Grid_Global) {
8961
+ if (*attrs = = common::CUDASubprogramAttrs::Device ||
8962
+ *attrs = = common::CUDASubprogramAttrs::Global ||
8963
+ *attrs = = common::CUDASubprogramAttrs::Grid_Global) {
8964
8964
inDeviceSubprogram = true ;
8965
8965
}
8966
8966
}
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ module m
14
14
attributes(host,device) real function foo(x)
15
15
foo = x + 1.
16
16
end function
17
+ attributes(host) subroutine hostsub(a)
18
+ integer, intent(out) :: a(14)
19
+ a = 99
20
+ end subroutine
17
21
end
18
22
19
23
!Expect: m.mod
39
43
!real(4)::x
40
44
!real(4)::foo
41
45
!end
46
+ attributes(host)subroutinehostsub(a)
47
+ integer(4),intent(out)::a(1_8:14_8)
48
+ end
42
49
!end
You can’t perform that action at this time.
0 commit comments