[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling C++ hackers. Please try out the new handling of C++11 lambda
From: |
Richard Copley |
Subject: |
Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode. |
Date: |
Wed, 24 Aug 2016 20:27:58 +0100 |
Hi Alan,
Thanks for this!
I encountered a problem while trying to come up with an
example so I could suggest a different default indentation
style for lambda bodies:
int main ()
{
std::cout << ([] (int x) -> int {
return 2 * x;
} (10)) << std::endl;
}
Never mind the default indentation style, life's too short!
But here is the problem I mentioned. I just pulled from master
and recompiled and the bug is still present (as of your
commit 799a8a3338389013e8a76a70f507664ccb09a14f).
>From emacs -Q:
C-x b x RET ; switch to a new buffer
M-x c++-mode RET
{ } C-p ; insert a pair of braces and put point between them
[ ; insert a left square bracket
Emacs freezes. It can be woken up by holding down C-g
for a few seconds, at which point the *Messages*
buffer has this:
Error during redisplay: (jit-lock-function 55) signaled (quit)
Error during redisplay: (jit-lock-function 57) signaled (quit)
Error during redisplay: (jit-lock-function 60) signaled (quit)
Quit [7 times]
- Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Alan Mackenzie, 2016/08/15
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Eli Zaretskii, 2016/08/15
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Matthias Meulien, 2016/08/19
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Alan Mackenzie, 2016/08/21
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode.,
Richard Copley <=
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Alan Mackenzie, 2016/08/24
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Richard Copley, 2016/08/24
- Re: Calling C++ hackers. Please try out the new handling of C++11 lambda functions in CC Mode., Matthias Meulien, 2016/08/27