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 <filename>


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

Reply via email to