From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Tanis, Craig" Newsgroups: gmane.emacs.bugs Subject: bug#28418: 25.2; c++ angle bracket incorrect mismatch Date: Mon, 11 Sep 2017 14:49:57 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505143896 9649 195.159.176.226 (11 Sep 2017 15:31:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2017 15:31:36 +0000 (UTC) To: 28418@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 17:31:28 2017 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 1drQg1-0001GU-4h for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 17:31:09 +0200 Original-Received: from localhost ([::1]:58433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drQg8-0003v3-8F for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 11:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drQb9-0007d8-Fy for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 11:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drQb4-0008Cc-GS for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 11:26:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drQb4-0008Bx-9W for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 11:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drQb4-0006Cy-2t for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 11:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Tanis, Craig" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2017 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28418 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.150514350523777 (code B ref -1); Mon, 11 Sep 2017 15:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Sep 2017 15:25:05 +0000 Original-Received: from localhost ([127.0.0.1]:33684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drQa9-0006BQ-0E for submit@debbugs.gnu.org; Mon, 11 Sep 2017 11:25:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drQ2O-0005KL-1x for submit@debbugs.gnu.org; Mon, 11 Sep 2017 10:50:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drQ2H-00069S-Ok for submit@debbugs.gnu.org; Mon, 11 Sep 2017 10:50:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drQ2H-00069K-Kb for submit@debbugs.gnu.org; Mon, 11 Sep 2017 10:50:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drQ2G-0006kZ-6x for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 10:50:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drQ2C-00066f-76 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 10:50:04 -0400 Original-Received: from mail-sn1nam02on0115.outbound.protection.outlook.com ([104.47.36.115]:44400 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drQ2B-00065b-Sc for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 10:50:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mocsutc0.onmicrosoft.com; s=selector1-utc-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=32dPeE/X4X32XCoavYRzLdNevqk5XosJAFahTWTFiPY=; b=CzF1S3xrniTFlbr1FAz0zWBcpIQ9ACQdqyp8HyaHWCEVCycqAKwMuEW/zcgoSuNT6HcNhZy82HXqBsGD17dOZ2N5oEa/nOqJbVMN9vQ77HoRiLivyFRWQwJLYxZtaJr3JO3dQPn0/Fbs1UokaCWH3L5gGNufVwQEX2hI7K2XcsE= Original-Received: from CY4PR1001MB2104.namprd10.prod.outlook.com (10.171.220.33) by CY4PR1001MB2086.namprd10.prod.outlook.com (10.171.220.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Mon, 11 Sep 2017 14:49:57 +0000 Original-Received: from CY4PR1001MB2104.namprd10.prod.outlook.com ([10.171.220.33]) by CY4PR1001MB2104.namprd10.prod.outlook.com ([10.171.220.33]) with mapi id 15.20.0035.021; Mon, 11 Sep 2017 14:49:57 +0000 Thread-Topic: 25.2; c++ angle bracket incorrect mismatch Thread-Index: AQHTKw08C8sgTpHaZEKu4EjF9Xn3XQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Craig-Tanis@utc.edu; x-originating-ip: [150.182.145.222] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR1001MB2086; 6:KVzFhWNO4fmyDz5qir/PFQvYL1ml+5sTeN/w9tACY70aYOtpfMjuRoNu5Nw+8nC1A+q5RoCop/P8i+54qBUz5gCPjuVcngLKxqLwjX7ghLq2cf8f2DYhtMVo3XYxCpFbxxkAj3NGLSMUhuRuoKE4lXRQy1g3Q5nCmwmfdOVp60xBB5ip9Tcr8LAmC9vWe2nwKBKvLOEI5K1I3cEriCYYdM4B2oOpWtQPojTK4zbLH5h4WDj76PKj7otxJGGn6Af5U0qyeZKwPDB96Wf74a5lP6/iPTYEo+na6AcyTQ4OYTItpzjb54wxQSCQTOz+fok4QAqijJo4DVyUtchoZFoTSw==; 5:ifZpke8QZC4eVtoroXE+ViXh/8g48f69Mq0LM3eFksuu/sZYq9crzZqznm4c8hgt+UhXyHi4JYydbmRTdUVVM/KDESU81tVwnsbClSM5VKcnowoiszyhFba20HFYWa+WdBQwdP0dHH2swDbNhP9tGQ==; 24:uWW4LlO+wrHfIm+ZAAGpHxMeHkyO1Fwg/xzen7eQh3U+sTSYHd0zV8zOks6smYB0tknDhHcXYILVaTHYSFwou0mOQxEhD+/i5AaztSu8Glc=; 7:G4KOH8FLG+3pIANpNzLS1pmlnbfsBxrvt3iuMh7eOfH+UfV3O3F2L63g5JUnZ/KMYNif1CEiXiOwHXtDVNieq0xIW1pMGLfCBqCMrBPwD1Bhx2wJTw9mxQcLnSK/Fzp3oDqtoXfQlOJMYPCG1PHjZ8953TnPcJ0M5V5mo+ppduKoabuuW9T1IuqR6Pg4pDoEnxPFvsrNfPL9Z/6vVGluJu2O+7qHrsR x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: f1160110-9390-4a66-c1b3-08d4f9245f21 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR1001MB2086; x-ms-traffictypediagnostic: CY4PR1001MB2086: x-exchange-antispam-report-test: UriScan:(1956098413222); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123558100)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR1001MB2086; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR1001MB2086; x-forefront-prvs: 04270EF89C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39830400002)(199003)(189002)(377424004)(3280700002)(82746002)(14454004)(3660700001)(36756003)(72206003)(33656002)(101416001)(110136004)(81156014)(81166006)(54356999)(50986999)(88552002)(6916009)(189998001)(68736007)(25786009)(478600001)(8676002)(2501003)(75432002)(7736002)(5660300001)(3846002)(6116002)(6506006)(102836003)(6436002)(2906002)(66066001)(53936002)(551544002)(6486002)(77096006)(6512007)(5640700003)(99286003)(8936002)(97736004)(2900100001)(105586002)(106356001)(86362001)(2351001)(305945005)(83716003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR1001MB2086; H:CY4PR1001MB2104.namprd10.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: utc.edu does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <2B84FA577D117C41A02218C9702270C6@namprd10.prod.outlook.com> X-OriginatorOrg: utc.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2017 14:49:57.5019 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 11254fc1-8f1f-43dc-85e1-58fa82aded3c X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1001MB2086 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 11 Sep 2017 11:25:03 -0400 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:136784 Archived-At: The opening angle bracket from the stream insertion operator (<<) becomes misclassified as an opening delimiter if a later string literal in = the file contains >> See the following sample file. Notice that you must type in the string as indicated because the act of typing triggers the misclassification. When the error occurs, the closing bracket matches the '<' right before "ni= ce".=20 I suggest pasting this into a new file and then manipulating the first stri= ng. //--------------------------- int main(int argc, char *argv[]) { std::cout << "nice"; // <-- manually type in this string return 0; } void subroutine() { char* foo=3D "a >> b"; return; } //--------------------------- In GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 1= 0.9.5 (Build 13F1911)) of 2017-04-21 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-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 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. up-list: Scan error: "Unbalanced parentheses", 34, 1 Saving file /Users/ctanis/Desktop/foo.cpp... Wrote /Users/ctanis/Desktop/foo.cpp user-error: The mark is not set now, so there is no region Undo! Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cl-extra help-mode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 215382 7642) (symbols 48 21583 0) (miscs 40 52 152) (strings 32 20302 6885) (string-bytes 1 698238) (vectors 16 35302) (vector-slots 8 678284 5012) (floats 8 162 29) (intervals 56 258 9) (buffers 976 18)) ---- Craig Tanis, PhD UTC Computer Science and Engineering craig-tanis@utc.edu