This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29455] Issues with -Wchar-subscripts
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2006 16:54:07 -0000
- Subject: [Bug c++/29455] Issues with -Wchar-subscripts
- References: <bug-29455-1038@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-13 16:54 -------
'a' in C is not of the type char but instead int so not warning there is
correct really. Also you forgot one thing '%' does not have to match up with
the ANSI character set so it could be negative in signed char which means char
(which could default to signed char) would be different.
Anyways the above expliation should resolve what is the current behavior GCC
has with its warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29455