[patch, fortran, RFC] warn about out-of-bounds errors in DO loops

Richard Sandiford richard.sandiford@linaro.org
Tue Sep 12 10:38:00 GMT 2017


Thanks for doing this, looks really useful.

Thomas Koenig <tkoenig@netcologne.de> writes:
> Well, here's a version which actually throws a hard error in
> obvious cases; the other cases are reserved for -Wextra.

Is it OK to throw a hard error for this?  Maybe the rules are different
from C and C++, but normally we can't do that for code that's only
invalid if executed.  An unconditional warning would be good though.

Thanks,
Richard



More information about the Gcc-patches mailing list