http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52014
--- Comment #1 from cheesear at gmail dot com 2012-01-27 07:05:26 UTC --- Sorry, accidentally hit return before I was ready. The code sample fails to compile because of the use of decltype in the parameter-list of the nested lambda function defined in bar.test(). Using a typedef in advance will circumvent this issue.