This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54764] In class initialization of non-static lambda member can't be used in class with default template paramer
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Oct 2012 11:54:47 +0000
- Subject: [Bug c++/54764] In class initialization of non-static lambda member can't be used in class with default template paramer
- Auto-submitted: auto-generated
- References: <bug-54764-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54764
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-10-01 11:54:47 UTC ---
Simplified to get rid of library dependencies:
//-------------------
template<class T = void>
struct c
{
int (*f)(int) = [](int i){return i + i;};
};
//-------------------