build environment: gcc 4.5.0 on MacBook Pro running OS X 10.6.4 execution environment: same as build environment command: g++ --std=c++0x <filename> auto at_or_above = [] ( int threshhold ) { return [threshhold] (int x) { return x >= threshhold; }; }; template< class Pred > int zero( Pred ) { return 0; } int main() { return zero( at_or_above(0) ); }
Apparently this is still happening in mainline. Jason, can you have a look?
*** Bug 46550 has been marked as a duplicate of this bug. ***
Fixed for 4.7.0. *** This bug has been marked as a duplicate of bug 47687 ***