This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR43015 - ICE with -fcheck=bounds and BIND(C)


Tobias Burnus wrote:
The following patch is trivial: Normal procedures with character
argument come with a hidden length argument, which can be used with
-fcheck=bounds to check whether the actual argument is smaller than the
dummy argument.

However, BIND(C) procedures do not have any hidden argument; thus
accessing the non-existing argument leads to an ICE. The fix is trivial:
Don't add the check for BIND(C) procedures.

Build and regtested on x86-64-linux.
OK for the trunk?

Ok.


Thanks for the fix!

Daniel

--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]