From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26969 invoked by alias); 28 Feb 2002 09:26:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26922 invoked by uid 71); 28 Feb 2002 09:26:01 -0000 Resent-Date: 28 Feb 2002 09:26:01 -0000 Resent-Message-ID: <20020228092601.26921.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Jim Meyering Received:(qmail 18401 invoked from network); 28 Feb 2002 09:18:09 -0000 Received: from unknown (HELO pixie.eng.ascend.com) (212.234.50.122) by sources.redhat.com with SMTP; 28 Feb 2002 09:18:09 -0000 Received: by pixie.eng.ascend.com (Postfix, from userid 1000) id 0CA10AD79; Thu, 28 Feb 2002 10:18:05 +0100 (CET) Message-Id:<87elj6j777.fsf@pixie.eng.ascend.com> Date: Thu, 28 Feb 2002 09:56:00 -0000 From: Jim Meyering To: gcc-gnats@gcc.gnu.org Subject: c/5791: '\a' is interpreted as 'a' X-SW-Source: 2002-02/txt/msg00761.txt.bz2 List-Id: >Number: 5791 >Category: c >Synopsis: '\a' is interpreted as 'a' >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Thu Feb 28 01:26:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jim Meyering >Release: 3.2 20020227 (experimental) >Organization: >Environment: System: Linux never 2.4.17 #3 SMP Tue Dec 29 21:27:44 CET 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /mirror/d/gcc/configure --disable-nls --prefix=/p/p/gcc-2002-02-28.01h10 >Description: '\a' is interpreted as 'a' >How-To-Repeat: $ cat k.c f () { switch (1) { case '\a': case 'a': return; } } $ gcc k.c k.c: In function `f': k.c:1: duplicate case value k.c:1: previously used here [Exit 1] >Fix: 2002-02-28 Jim Meyering * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code: \a still means TARGET_BELL. --- cpplex.c.~1.190.~ Thu Feb 28 02:06:24 2002 +++ cpplex.c Thu Feb 28 10:10:35 2002 @@ -1721,6 +1721,7 @@ cpp_parse_escape (pfile, pstr, limit, ma case 'a': if (CPP_WTRADITIONAL (pfile)) cpp_warning (pfile, "the meaning of '\\a' is different in traditional C"); + c = TARGET_BELL; break; case 'e': case 'E': >Release-Note: >Audit-Trail: >Unformatted: