https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17898

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
The usage of ISDIGIT in adadecode.c now causes a warning and build failure:

/test/gnu/gcc/objdir/./prev-gcc/xg++ -B/test/gnu/gcc/objdir/./prev-gcc/
-B/opt/g
nu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -nostdinc++
-B/test/gnu/gcc/objdir/prev
-hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-B/test/gnu/gcc/objdir/prev-hppa2.
0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs 
-I/test/gnu/gcc/objdir/prev-hppa2.
0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11 
-I/test/gnu/gcc/objd
ir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/include 
-I/test/gnu/gcc/gcc/libstdc+
+-v3/libsupc++
-L/test/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/sr
c/.libs
-L/test/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++
/.libs -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -fno-checking -DIN_GCC    
-fno-exc
eptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-s
trings -Wcast-qual -Wno-error=format-diag -mdisable-indexing
-Wmissing-format-at
tribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros
-Wno-overlength
-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -Iada -I../../gcc/gcc
-I../../
gcc/gcc/ada -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/opt/gnu/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc/gcc/../libbacktrace   -o ada/adadecode.o -MT ada/adadecode.o -MMD
-MP -MF ada/.deps/adadecode.TPo ../../gcc/gcc/ada/adadecode.c
In file included from ../../gcc/gcc/ada/adadecode.c:35:
../../gcc/gcc/ada/adadecode.c: In function 'void __gnat_decode(const char*,
char*, int)':
../../gcc/gcc/ada/adadecode.c:260:34: error: array subscript has type 'char'
[-Werror=char-subscripts]
  260 |     while (ISDIGIT (ada_name[last]) && last > 0)
      |                     ~~~~~~~~~~~~~^
../../gcc/gcc/ada/adadecode.c:260:12: note: in expansion of macro 'ISDIGIT'
  260 |     while (ISDIGIT (ada_name[last]) && last > 0)
      |            ^~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1117: ada/adadecode.o] Error 1

Reply via email to