emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11386: closed (C++11 support: C++ mode gets (tempo


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11386: closed (C++11 support: C++ mode gets (temporarily) confused by edits to convert "> >" to ">>" in templates)
Date: Tue, 18 Nov 2014 17:02:02 +0000

Your message dated Tue, 18 Nov 2014 18:00:51 +0100
with message-id <address@hidden>
and subject line Re: C++11 support: C++ mode gets (temporarily) confused by 
edits to convert "> >" to ">>" in templates
has caused the debbugs.gnu.org bug report #11386,
regarding C++11 support: C++ mode gets (temporarily) confused by edits to 
convert "> >" to ">>" in templates
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11386: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11386
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: C++11 support: C++ mode gets (temporarily) confused by edits to convert "> >" to ">>" in templates Date: Mon, 30 Apr 2012 14:05:29 -0700
C++ mode gets confused if C++98 code is updated to omit the (now
unnecessary) space between the closing ">" angle brackets in template
argument lists.

To reproduce:

Start by typing the following (C++98) code:

int foo() {
  vector<vector<string> > temp;
}

So far, so good. Now go back and remove the extra space between the
closing angle brackets.  This will cause the closing } to not match
the opening { (according to emacs), so if you then add another
function below foo, you'll get something like:

int foo() {
  vector<vector<string>> temp;
  return 0;
}

      int bar() {
  }

where the indentation of everything after the function foo() is
broken.  Matching of the angle brackets is also broken.

The buffer can be restored to a good state by erasing and retyping the
inner "<" in the type.  Adding the extra space and removing it will
put the buffer back in a bad state.  Reading the code from file (with
or without the extra space) also leaves the buffer in a good state.



--- End Message ---
--- Begin Message --- Subject: Re: C++11 support: C++ mode gets (temporarily) confused by edits to convert "> >" to ">>" in templates Date: Tue, 18 Nov 2014 18:00:51 +0100 User-agent: KMail/4.13.3 (Linux/3.13.0-39-generic; KDE/4.13.3; x86_64; ; )
tags 11386 fixed

Should be fixed in 66bb9533fc77963c495de7f33ec6dc8e4d342a55



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]