This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54104] Parser error for lambda expression if function template has default parameter.
- From: "likan_999.student at sina dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jul 2012 09:04:49 +0000
- Subject: [Bug c++/54104] Parser error for lambda expression if function template has default parameter.
- Auto-submitted: auto-generated
- References: <bug-54104-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54104
--- Comment #1 from likan_999.student at sina dot com 2012-07-27 09:04:49 UTC ---
The example can be further reduced to:
template <class T = int, typename U>
void f(const U& m) {
auto g = [] () {};
}