Issue 133399
Summary [flang] [regression] preprocessor issue with include file
Labels flang
Assignees
Reporter shivaramaarao
    consider the following input files
sub1.F90
```module add_tmp
  public :: add_tmp_double
  contains
#define _rk _8
#include "./sub2.F90"
end module```

sub2.F90
```subroutine add_tmp_double
  real :: ev_scale_value
  ev_scale_value = 1.0_rk
end subroutine```

$flang sub1.F90
```error: Semantic errors in sub1.F90
././sub2.F90:3:24: error: Parameter 'rk' not found
    ev_scale_value = 1.0_rk
 ^^
./sub1.F90:6:1: error: included here
  #include "./sub2.F90"```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to