This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/64854] No bound check for explicit-shape arrays
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Jan 2015 22:39:05 +0000
- Subject: [Bug fortran/64854] No bound check for explicit-shape arrays
- Auto-submitted: auto-generated
- References: <bug-64854-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64854
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Note that the error is detected if the code is compiled with
-fsanitize=address. And IMO the right way to use the array in a 'contains' is
a(:) (for which -fcheck=bounds works).