This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52014] [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function
- From: "cheesear at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jan 2012 07:05:26 +0000
- Subject: [Bug c++/52014] [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function
- Auto-submitted: auto-generated
- References: <bug-52014-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52014
--- Comment #1 from cheesear at gmail dot com 2012-01-27 07:05:26 UTC ---
Sorry, accidentally hit return before I was ready. The code sample fails to
compile because of the use of decltype in the parameter-list of the nested
lambda function defined in bar.test(). Using a typedef in advance will
circumvent this issue.