public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5791: '\a' is interpreted as 'a'
@ 2002-02-28 12:06 neil
0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2002-02-28 12:06 UTC (permalink / raw)
To: gcc-bugs, gcc-patches, gcc-prs, jim, nobody
Synopsis: '\a' is interpreted as 'a'
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Thu Feb 28 10:46:43 2002
State-Changed-Why:
Thanks, I've applied your patch to 3.2.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5791
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/5791: '\a' is interpreted as 'a'
@ 2002-02-28 9:56 Jim Meyering
0 siblings, 0 replies; 2+ messages in thread
From: Jim Meyering @ 2002-02-28 9:56 UTC (permalink / raw)
To: gcc-gnats
>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
<machine, os, target, libraries (multiple lines)>
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 <meyering@lucent.com>
* 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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-28 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28 12:06 c/5791: '\a' is interpreted as 'a' neil
-- strict thread matches above, loose matches on Subject: below --
2002-02-28 9:56 Jim Meyering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).