This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83779] Trivial bounds error not detected with -fbounds-check
- From: "w6ws at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Jan 2018 23:49:20 +0000
- Subject: [Bug c++/83779] Trivial bounds error not detected with -fbounds-check
- Auto-submitted: auto-generated
- References: <bug-83779-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83779
--- Comment #5 from Walter Spector <w6ws at earthlink dot net> ---
Thanks for mentioning that, Martin.
A couple of us in the project I work on were reviewing the options we specify
in our debug builds to try to smoke out problems. We already use options like
-Wall, -Wextra and such for both g++ and gfortran. We also use -fbounds-check
with gfortran. Just wondering if -fbounds-check would help find things on the
c++ side. But seems it doesn't - as documented.