Open yus3710-fj opened 6 months ago
@llvm/issue-subscribers-flang-frontend
Author: Yusuke MINATO (yus3710-fj)
Is this issue still present?, current flang-new seems to handle this:https://godbolt.org/z/nfoqh8ddz
Thank you for the information.
Your test code includes PROGRAM
statement. Flang-new had already worked as expected for such a code even before I reported this issue. However, flang-new hasn't worked for the original program I wrote in the description yet.
@Thirumalai-Shaktivel [AMD] is looking into this issue.
This issue is fixed and is under internal review.
This is an issue from Fujitsu testsuite.
Flang-new terminates abnormally when compiling a
threadprivate
directive with a variable declared implicitly in main program. The variable in athreadprivate
directive must have theSAVE
attribute, and the variable declared in main program has it implicitly since Fortran 2008. (So it might not be an OpenMP issue.)The following are the test program and the compilation results of flang-new and gfortran.
If the variable is declared explicitly, the compilation succeeds.