File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1123,7 +1123,8 @@ void AccAttributeVisitor::AllowOnlyVariable(const parser::AccObject &object) {
1123
1123
common::visitors{
1124
1124
[&](const parser::Designator &designator) {
1125
1125
const auto &name{GetLastName (designator)};
1126
- if (name.symbol && !semantics::IsVariableName (*name.symbol )) {
1126
+ if (name.symbol && !semantics::IsVariableName (*name.symbol ) &&
1127
+ !semantics::IsNamedConstant (*name.symbol )) {
1127
1128
context_.Say (designator.source ,
1128
1129
" Only variables are allowed in data clauses on the %s "
1129
1130
" directive" _err_en_US,
Original file line number Diff line number Diff line change @@ -210,4 +210,10 @@ subroutine sub4(t)
210
210
! $acc data copy(t%t1_proc)
211
211
! $acc end data
212
212
end subroutine
213
+
214
+ subroutine sub5 ()
215
+ integer , parameter :: iparam = 1024
216
+ ! $acc data copyin(iparam)
217
+ ! $acc end data
218
+ end subroutine
213
219
end module
You can’t perform that action at this time.
0 commit comments