Skip to content

Conversation

@eugeneepshteyn
Copy link
Contributor

Fixes #169487

@github-actions
Copy link

github-actions bot commented Nov 25, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@eugeneepshteyn
Copy link
Contributor Author

@clementval , I saw the issue and thought maybe it could be a quick fix. With this draft change, the output is as follows:

$ flang -c acc-declare-present.f90 -fopenacc
error: Semantic errors in acc-declare-present.f90
./acc-declare-present.f90:5:19: error: 'm' is not an appropriate symbol for PRESENT clause
      !$acc declare present(m)
                    ^^^^^^^^^^
./acc-declare-present.f90:5:27: error: No explicit type declared for 'm'
      !$acc declare present(m)
                            ^

Please let me know if this is reasonable and I'll add a test and continue with this PR.

Copy link
Contributor

@clementval clementval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that seems reasonable to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flang][OpenACC] crash on llvm-test-suite/Fortran/gfortran/regression/goacc/pr78260.f90

2 participants