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: [gfortran,patch] Fix PR27588: Add substring-out-of-bounds check


FX wrote (regarding his patch): "I've been working to find how to output
the variable name, [...] but it still doesn't work in all cases."
If you find an example where it does not work, I'm happy to look at it.
(I didn't find one, but I didn't look for it extensively)

Looking for one is easy: simply add a gcc_assert(name) inside gfc_conv_substring (but outside the "if (flag_bounds_check)" block), rebuild and run the testsuite: if there are new failures, then you have your case you can (happily) look into it ;-)


Even if you don't have time to do it, I'd suggest opening a PR with the restults of the procedure (it can also be applied on the array bounds checking code).

Regards,
FX


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