This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29455] Issues with -Wchar-subscripts



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]