http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59320

--- Comment #15 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Joost VandeVondele from comment #14)
> (In reply to Manuel López-Ibáñez from comment #13)
> > Will -fsanitize=undefined catch these? If so, perhaps the message shown
> > before reporting a bug should mention trying this first.
> 
> I guess -fsanitize=address would catch the out-of-bounds access, but I don't
> think the message should become too complex (it is already a bit narrow and
> C-centric, for example '-fno-strict-aliasing' means nothing for Fortran
> programs), and furthermore that option would only be available for a recent
> gcc.

It would be fine to have per-language recommendations, that is,

For C/C++ do, try this.
For Fortran, try that.
For Ada, try ...

It is a waste of effort by everybody when bugs are reported for broken code. It
is not like gcc has too few PRs. There are 3268 unconfirmed ones.

Reply via email to