Subject: bug#13046: 23.4; Minimal Example to freeze emacs C++ mode (nasty interaction between templates & windows endline characters )

From: Chong Yidong <[email-masked]>
Date: Sun, 02 Dec 2012 10:13:47 +0800

John Smith <[email-masked]> writes:

> Using emacs -Q,just open the attached minimal example and try typing
> "std::string" in the body of the function. 
> That should hang emacs forever (or at least it does on my up-to-date
> ubuntu).

I think this is a duplicate of Bug#11841.

The patch posted in Bug#11841 does not completely fix this test case.
Giving ^M whitespace syntax in CC mode, as Stefan suggested, seems like
the easiest solution.  Alan, could you take another look?  It would be
good to have this fixed in Emacs 24.3.