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

Reply via email to