This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/29455] Issues with -Wchar-subscripts
- From: Andrew Pinski <pinskia at gmail dot com>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 14 Oct 2006 11:08:12 -0700
- Subject: Re: [Bug c++/29455] Issues with -Wchar-subscripts
- References: <bug-29455-1038@http.gcc.gnu.org/bugzilla/> <20061014175253.27245.qmail@sourceware.org>
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