From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9AAFA389780B; Tue, 19 May 2020 12:40:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AAFA389780B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589892053; bh=/kHgdJFfGPEumAea6yYKrYovLnsjSG1WHKF+bYN6gjI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QvlNQ88sEeNHk4ODBH2qF9dQWgqARs87NInM/HVCIc17jYJ1gUkt2sCFILuLuuYO5 Kijm4sVTBLZLiGG25r6RlyZyI7AoL9AogEw0Bf8wKzOKN9zbIlqrPL+7J87lsH60hu fAFNO2GuDYhcys1las7wwco4gld6mvrMq+v3yhTc= From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/95177] error: array subscript has type char Date: Tue, 19 May 2020 12:40:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: build, diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc keywords see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 12:40:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95177 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg Keywords| |build, diagnostic See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D94182 --- Comment #3 from Eric Gallager --- (In reply to Roland Illig from comment #2) > >--- Comment #1 from kargl at gcc dot gnu.org --- > >Why cast to unsigned char? The prototypes for tolower(), toupper(), > >isdigit(), etc show that the type of the argument is int. >=20 > See https://stackoverflow.com/a/60696378 for a detailed explanation. ...which in turn led to bug 94182=