From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14730 invoked by alias); 2 Aug 2010 18:43:14 -0000 Received: (qmail 14689 invoked by uid 48); 2 Aug 2010 18:43:02 -0000 Date: Mon, 02 Aug 2010 18:43:00 -0000 Subject: [Bug c++/45167] New: lambda+template="Internal error: Segmentation fault (program cc1plus)" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "wb at fnal dot gov" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00093.txt.bz2 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 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) ); } -- Summary: lambda+template="Internal error: Segmentation fault (program cc1plus)" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wb at fnal dot gov http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45167