Capturing reference variable by copy in C++0x lambda
This has just been fixed in gcc-4.7 trunk and gcc-4.6 branch. These should be available in gcc-4.7.0 (a while from now – still in stage 1) and gcc-4.6.2 (alas 4.6.1 just came out.) But the intrepid could wait for the next snapshots or get a subversion copy. See audit trail for details.