Skip to content

[Flang] macro + comment + line continuation #82579

Closed
@ye-luo

Description

@ye-luo

main.f90

#define DEV_ACC !!!

program aa
implicit none

integer i,j,a
DEV_ACC data &
DEV_ACC & copyin(i)
do i=1,10
do j=1,10
  a=1
enddo
enddo
end program

got

$ flang-new -cpp main.f90 
error: Could not parse main.f90
./main.f90:13:4: error: expected end of statement
  enddo
     ^
./main.f90:13:1: in the context: END PROGRAM statement
  enddo
  ^
./main.f90:3:1: in the context: main program
  program aa
  ^

gfortran -cpp main.f90 works

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions