[Bug bootstrap/30511] New: False array bound check causes gcc failed to boostrap
hjl at lucon dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 19 19:13:00 GMT 2007
With revision 120976, I got
cc1: warnings being treated as errors
/export/gnu/src/gcc/gcc/gcc/fortran/symbol.c: In function Âgfc_get_namespaceÂ:
/export/gnu/src/gcc/gcc/gcc/fortran/symbol.c:1842: warning: array subscript is
above array bounds
There are
1838 /* Initialize default implicit types. */
1839 for (i = 'a'; i <= 'z'; i++)
1840 {
1841 ns->set_flag[i - 'a'] = 0;
1842 ts = &ns->default_type[i - 'a'];
bash-3.1$ grep default_type *.h
gfortran.h: gfc_typespec default_type[GFC_LETTERS];
...
bash-3.1$ grep GFC_LETTERS *.h
gfortran.h:#define GFC_LETTERS 26 /* Number of letters in the
alphabet. */
I don't how array subscript can be above array bounds.
--
Summary: False array bound check causes gcc failed to boostrap
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30511
More information about the Gcc-bugs
mailing list