https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997
--- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #3) > > Anyway, renaming the binding label, like > > subroutine acc_attach_c(x) bind(C, name="acc_attach_renamed") > > makes the code compile. > > Well, the code *does* compile as it is only a warning. Right. I had an implicit -pedantic flag set... Well, one of the PRs I had in mind is pr107659.