Skip to content

[flang] Non-volatile pointer can point to volatile target #135805

@ashermancinelli

Description

@ashermancinelli

From offline discussion, this looks to be a bug. Flang compiles this with no warnings.

integer,pointer::p
integer,target,volatile::t
p=>t
end

8.5.20 VOLATILE attribute
15 A pointer should have the VOLATILE attribute if its target has the VOLATILE attribute.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions