From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Odekirk, Shawn" Newsgroups: gmane.emacs.bugs Subject: bug#5388: 23.1; syntactic analysis incorrect Date: Fri, 15 Jan 2010 09:23:20 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA95EE.4A1A4A00" X-Trace: ger.gmane.org 1263574322 8476 80.91.229.12 (15 Jan 2010 16:52:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2010 16:52:02 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 15 17:51:53 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVpOP-00028y-4t for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jan 2010 17:51:52 +0100 Original-Received: from localhost ([127.0.0.1]:34539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVpON-0001PG-Oz for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jan 2010 11:51:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVnUN-0007pV-A3 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:49:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVnUI-0007lC-9f for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:49:26 -0500 Original-Received: from [199.232.76.173] (port=53811 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVnUI-0007l2-4S for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:49:22 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:25041) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVnUH-0007oD-Ar for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:49:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVnUG-0006QO-42 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:49:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NVnCY-000248-Fs; Fri, 15 Jan 2010 09:31:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: "Odekirk, Shawn" , 5388@debbugs.gnu.org Resent-From: "Odekirk, Shawn" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 14:31:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5388 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12635658427907 (code B ref -1); Fri, 15 Jan 2010 14:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jan 2010 14:30:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVnCD-00023T-8A for submit@debbugs.gnu.org; Fri, 15 Jan 2010 09:30:42 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVn8w-000216-7M for submit@debbugs.gnu.org; Fri, 15 Jan 2010 09:27:20 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:58765 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVn8r-0006Km-AV for submit@debbugs.gnu.org; Fri, 15 Jan 2010 09:27:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NVn5E-0008G2-9W for submit@debbugs.gnu.org; Fri, 15 Jan 2010 09:23:29 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:54787) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVn5D-0008Fk-Vl for submit@debbugs.gnu.org; Fri, 15 Jan 2010 09:23:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVn5D-0002qG-L2 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:23:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVn5B-0002pq-S1 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:23:27 -0500 Original-Received: from [199.232.76.173] (port=47782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVn5B-0002pn-MP for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:23:25 -0500 Original-Received: from server519.appriver.com ([72.32.252.113]:3724) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVn5A-0008Di-GZ for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 09:23:25 -0500 X-Policy: GLOBAL - fkilogistex.com X-Primary: shawn.odekirk@intelligrated.com X-Note: This Email was scanned by AppRiver SecureTide X-Virus-Scan: V- X-Note: TCH-CT/SI:0-195/SG:5 1/15/2010 8:22:02 AM X-GBUdb-Analysis: 0, 70.60.60.220, Ugly c=0.994986 p=-0.996668 Source White X-Signature-Violations: 0-0-0-31243-c X-Note: Spam Tests Failed: X-Country-Path: PRIVATE->UNITED STATES->UNITED STATES X-Note-Sending-IP: 70.60.60.220 X-Note-Reverse-DNS: rrcs-70-60-60-220.central.biz.rr.com X-Note-WHTLIST: Shawn.Odekirk@intelligrated.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G113 G114 G115 G116 G120 G121 G219 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID X-Note: Headers Injected Original-Received: from [70.60.60.220] (HELO cinemail1.na.FKILogistex.Local) by server519.appriver.com (CommuniGate Pro SMTP 5.3.0) with ESMTP id 30746847 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 08:23:19 -0600 Original-Received: from cinemail2.na.FKILogistex.Local ([10.2.3.180]) by cinemail1.na.FKILogistex.Local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 15 Jan 2010 09:23:21 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.1; syntactic analysis incorrect Thread-Index: AcqV7kpnxmFGnHepR8y8BJU7STw4VA== X-OriginalArrivalTime: 15 Jan 2010 14:23:21.0253 (UTC) FILETIME=[4A2A6D50:01CA95EE] X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Fri, 15 Jan 2010 09:30:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -6.6 (------) Resent-Date: Fri, 15 Jan 2010 09:31:02 -0500 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 15 Jan 2010 11:51:04 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34362 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01CA95EE.4A1A4A00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: To: bug-gnu-emacs@gnu.org Subject: 23.1; syntactic analysis incorrect --text follows this line-- A switch statement with two case labels, at least one of which is a character constant, causes the syntactic analysis of the first statement in the case block to be evaluated as statement-cont instead of statement-case-intro. I believe the line 'x =3D 1;' should be evaluated as = statement-case-into, but it is being evaluated as statement-cont. =20 switch (x) { case 'a': case 'b': x =3D 1; y =3D 2; break; } =20 =20 =20 In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5) of 2009-07-31 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.10703901 configured using `configure '--prefix=3D/usr' '--sysconfdir=3D/etc' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var' = '--mandir=3D/usr/share/man' '--without-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe'' =20 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t =20 Major mode: C/l =20 Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t =20 Recent input: C-x k =20 s w i t c h SPC ( x ) =20 x c - m o d e =20 { } c a s e SPC ' a '=20 : c a s e SPC ' b ' : x SPC =3D SPC=20 1 ; y SPC =3D SPC 3 2 ; =20 b r e a k ; x s e=20 t - v a r c - e c =20 y t =20 =20 C-k C-k C-k C-k=20 C-k C-k C-k =20 =20 x r e=20 p o r =20 Recent messages: syntax: ((statement-cont 221)), indent: 4 syntax: ((case-label 205)), indent: 2 Mark set syntax: ((topmost-intro 1)), indent: 0 syntax: ((substatement-open 1)), indent: 2 syntax: ((case-label 14)), indent: 2 [2 times] syntax: ((statement-cont 30)), indent: 4 syntax: ((statement 30)), indent: 2 syntax: ((statement 53)), indent: 2 syntax: ((block-close 14)), indent: 2 =20 =20 =20 ________________________________ Shawn Odekirk Senior Software Engineer Intelligrated 4612 Navistar Drive Frederick, MD 21703 Email: shawn.odekirk @intelligrated.com Web: www.intelligrated.com =20 Phone: 240.629.1540 Cell: 240.647.8457 Fax: 240.629.1460 ________________________________ =20 CONFIDENTIALITY NOTICE This e-mail transmission, and any documents, files, or previous e-mail messages attached to it, may contain confidential information, trade secret information, or information that is legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of any of the information contained in or attached to this message is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by reply e-mail, and destroy the original transmission and its' attachments. This E-mail is the property of Intelligrated. =20 =20 ------_=_NextPart_001_01CA95EE.4A1A4A00 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
From:  <shawn.odekirk@fkilogistex.c= om>
To:=20 bug-gnu-emacs@gnu.org
Subjec= t:=20 23.1; syntactic analysis incorrect
--text follows this line--
A = switch=20 statement with two case labels, at least one of which is a character = constant,=20 causes the syntactic analysis of the first statement in the case block = to be=20 evaluated as statement-cont instead of statement-case-intro.
I = believe the=20 line 'x =3D 1;' should be evaluated as statement-case-into, but it is = being=20 evaluated as statement-cont.
 
switch (x)
  {
  case=20 'a':
  case 'b':
    x =3D 1;
  y =3D = 2;
 =20 break;
  }
 
 
 
In GNU Emacs 23.1.1 = (x86_64-unknown-linux-gnu, GTK+=20 Version 2.16.5)
 of 2009-07-31 on = bitzer.hoetzel.info
Windowing=20 system distributor `The X.Org Foundation', version = 11.0.10703901
configured=20 using `configure  '--prefix=3D/usr' '--sysconfdir=3D/etc'=20 '--libexecdir=3D/usr/lib' '--localstatedir=3D/var' = '--mandir=3D/usr/share/man'=20 '--without-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Dx86-64 = -mtune=3Dgeneric -O2=20 -pipe''
 
Important settings:
  value of = $LC_ALL:=20 nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE:=20 nil
  value of $LC_MESSAGES: nil
  value of = $LC_MONETARY:=20 nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME:=20 nil
  value of $LANG: en_US.UTF-8
  value of = $XMODIFIERS:=20 nil
  locale-coding-system: utf-8-unix
 =20 default-enable-multibyte-characters: t
 
Major mode: C/l
 
Minor modes in effect:
  = tooltip-mode:=20 t
  tool-bar-mode: t
  mouse-wheel-mode: t
 =20 menu-bar-mode: t
  file-name-shadow-mode: t
 =20 global-font-lock-mode: t
  font-lock-mode: t
 =20 blink-cursor-mode: t
  global-auto-composition-mode: t
  = auto-composition-mode: t
  auto-encryption-mode: t
 =20 auto-compression-mode: t
  line-number-mode: t
 =20 transient-mark-mode: t
  abbrev-mode: t
 
Recent input:
C-x k <return> = <up>=20 <up> <up> <up> <down> <down> <down>=20
<down> <down> <down> <down> s w i t c h SPC = ( x )=20 <escape>
x c - m o d e <return> <down> = <down>=20 <down> <return>
{ <return> } <end> = <up>=20 <return> c a s e SPC ' a '
: <return> c a s e SPC ' b ' = :=20 <return> x SPC =3D SPC
1 ; <return> y SPC =3D SPC 3=20 <backspace> 2 ; <return>
b r e a k ; <down> = <tab>=20 <up> <tab> <escape> x s e
t - v a r <tab>=20 <return> c - e <tab> c <tab> <return>
y=20 <backspace> t <return> <tab> <up> <tab> = <up>=20 <tab>
<up> <tab> <down> <tab> = <down>=20 <tab> <up> <tab> <up>
<tab> <up> = <up> <up> <up> <C-home> C-k C-k C-k C-k
C-k = C-k C-k=20 <tab> <down> <tab> <down> <tab> = <down>=20
<tab> <down> <tab> <down> <tab> = <down>=20 <tab> <down>
<tab> <down> <down> = <down>=20 <return> <escape> x r e
p o r <tab>=20 <return>
 
Recent messages:
syntax: = ((statement-cont 221)),=20 indent: 4
syntax: ((case-label 205)), indent: 2
Mark = set
syntax:=20 ((topmost-intro 1)), indent: 0
syntax: ((substatement-open 1)), = indent:=20 2
syntax: ((case-label 14)), indent: 2 [2 times]
syntax: = ((statement-cont=20 30)), indent: 4
syntax: ((statement 30)), indent: 2
syntax: = ((statement=20 53)), indent: 2
syntax: ((block-close 14)), indent: = 2
 

 

 


Shawn=20 Odekirk
Senior=20 Software Engineer

Intelligrated
4612 Navistar=20 Drive
Frederick, MD 21703

Email:=20 shawn.odekirk@intelligrated.com
Web:=20 www.intelligrated.com=20

Phone:=20 240.629.1540
Cell:=20 240.647.8457
Fax:=20 240.629.1460


 

CONFIDENTIALITY=20 NOTICE

This=20 e-mail transmission, and any documents, files, or previous = e-mail=20 messages attached to it, may contain confidential = information, trade=20 secret information, or information that is legally = privileged. If=20 you are not the intended recipient, or a person responsible = for=20 delivering it to the intended recipient, you are hereby = notified=20 that any disclosure, copying, distribution, or use of any of = the=20 information contained in or attached to this message is = strictly=20 prohibited. If you have received this transmission in error, = please=20 immediately notify the sender by reply e-mail, and destroy = the=20 original transmission and its' attachments.

This = E-mail is=20 the property of=20 Intelligrated.

 

 
------_=_NextPart_001_01CA95EE.4A1A4A00--