From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place. Date: Fri, 16 Sep 2016 11:31:25 +0000 Message-ID: <20160916113124.GB3630@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1474025617 5316 195.159.176.226 (16 Sep 2016 11:33:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2016 11:33:37 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) To: 24449@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 16 13:33:30 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrOS-00083I-PP for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Sep 2016 13:33:20 +0200 Original-Received: from localhost ([::1]:39848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrOR-0008NH-0R for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Sep 2016 07:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrOG-0008Jr-7r for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrOA-0001NX-9E for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrOA-0001NK-74 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkrOA-0001LM-0W for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2016 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14740255305098 (code B ref -1); Fri, 16 Sep 2016 11:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2016 11:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:32816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNJ-0001KA-TG for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkrNI-0001Ju-LJ for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN9-0000cg-CR for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:32:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN9-0000c4-9W for submit@debbugs.gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN8-0007cF-1G for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkrN2-0000We-10 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:56 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:48953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkrN1-0000V8-Re for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2016 07:31:51 -0400 Original-Received: (qmail 60833 invoked by uid 3782); 16 Sep 2016 11:31:49 -0000 Original-Received: from acm.muc.de (p548C6AC0.dip0.t-ipconnect.de [84.140.106.192]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Sep 2016 13:31:48 +0200 Original-Received: (qmail 12737 invoked by uid 1000); 16 Sep 2016 11:31:25 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123381 Archived-At: Hello, Emacs. Using Emacs 25.1 RC2, and lisp/progmodes/cc-engine.el from commit 33f856ba01d13f649cf5c848b322ecb0dbfc02fc (Fri Sep 16 10:47:55 2016 +0000), $ emacs -Q -batch -f batch-byte-compile cc-engine.el . This outputs the following warning: In c-forward-decl-or-cast-1: cc-engine.el:8105:22:Warning: reference to free variable `eq' . The use of `eq' on L8105 is entirely correct. The error is at L8636, where the following appears: (and eq context nil (match-beginning 1)) . Clearly parentheses around the `eq' form are missing. The compiler should have output its warning for L8636, not L8105. -- Alan Mackenzie (Nuremberg, Germany).