From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26464 invoked by alias); 13 Oct 2006 16:54:21 -0000 Received: (qmail 26314 invoked by uid 48); 13 Oct 2006 16:54:07 -0000 Date: Fri, 13 Oct 2006 16:54:00 -0000 Message-ID: <20061013165407.26313.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/29455] Issues with -Wchar-subscripts In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg01150.txt.bz2 List-Id: ------- 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