Skip to content

[flang] preprocessor issue with openmp conditional code #126459

Closed
@shivaramaarao

Description

@shivaramaarao

consider the following example

program main
integer NDIR
#define BLANKMACRO

BLANKMACRO !$ NDIR=0
end program main

flang ignores the conditional code

$flang -fopenmp -E -fopenmp -ffree-form t2.f90

flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
#line "./t2.f90" 4
end program

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions