Skip to content

[flang] semantic error for valid volatile uses #60274

@k-arrows

Description

@k-arrows

Test code:
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gfortran.dg/volatile9.f90

Result (gfortran vs flang-new)

$ gfortran -c volatile9.f90
$

$ flang-new -c volatile9.f90
error: Semantic errors in volatile9.f90
./volatile9.f90:26:18: error: VOLATILE attribute was already specified on 'v13'
       volatile :: v13
                   ^^^

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions