[Bug c++/54104] Parser error for lambda expression if function template has default parameter.

likan_999.student at sina dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 27 09:05:00 GMT 2012


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 = [] () {};
}



More information about the Gcc-bugs mailing list