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 gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2006 18:08:22 -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 #4 from pinskia at gmail dot com 2006-10-14 18:08 -------
Subject: Re: Issues with -Wchar-subscripts
On Sat, 2006-10-14 at 17:52 +0000, h dot b dot furuseth at usit dot uio
dot no wrote:
> > 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.
>
> No. In a conforming C implementation, the character *which C interprets
> as '%'* must have a positive value. Maybe you are thinking of the
> opposite case: What its glyph _looks like_ on some display device is out
> of scope for the C standard.
But at this point, we are talking about C++ where 'a' is of type char.
I have to look at what the C++ standard says about this.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29455