Skip to content

[Flang] Failed to compile CHARACTER type declaration statement for array #117372

@DanielCChen

Description

@DanielCChen

Flang failed to compile the following code

character      cv3*(3)(3)
end



>flang-new -ffree-form ch1.f
error: Could not parse ch1.f
./ch1.f:1:18: error: expected end of statement
  character  cc*(3)(3)
                   ^
./ch1.f:1:1: in the context: specification construct
  character  cc*(3)(3)
  ^
./ch1.f:1:1: in the context: declaration construct
  character  cc*(3)(3)
  ^
./ch1.f:1:1: in the context: specification part
  character  cc*(3)(3)
  ^
./ch1.f:1:1: in the context: main program
  character  cc*(3)(3)
  ^

gfortran issues an error also.
XLF and ifort both compile it successfully.
The code seems standard conforming to me.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions