http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46550
Summary: [C++0x] Segmentation fault on lambda Product: gcc Version: 4.5.1 URL: http://ideone.com/pBaLQ Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: fl...@flast.jp The compiler says: g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. I compiled following code with g++ 4.5.1. File content: template < typename T > void f( const T & ); void g( void ) { f( []{ return []{}; }() ); }