This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]