http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53488
--- Comment #4 from Daniel Lunow <lunow at math dot hu-berlin.de> 2012-06-24 14:21:31 UTC --- Created attachment 27693 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27693 small test case Just wanted to report the same bug with gcc 4.7.1. I found out, that it occurs, if the initializer depends on some template argument. C:\dev\projects\compiler test>g++ -std=c++11 gcc_test5.cpp -Wall -o gcc_test5.exe gcc_test5.cpp: In lambda function: gcc_test5.cpp:10:29: warning: 'i' is used uninitialized in this function [-Wuninitialized] C:\dev\projects\compiler test>gcc_test5.exe 0 which should have given 4.