Bug 45167 - [C++0x] lambda+template="Internal error: Segmentation fault (program cc1plus)"
Summary: [C++0x] lambda+template="Internal error: Segmentation fault (program cc1plus)"
Status: RESOLVED DUPLICATE of bug 47687
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 46550 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-02 18:43 UTC by W E Brown
Modified: 2011-05-29 00:43 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-08-03 06:48:16


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description W E Brown 2010-08-02 18:43:02 UTC
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) ); }
Comment 1 Paolo Carlini 2010-08-03 06:48:16 UTC
Apparently this is still happening in mainline. Jason, can you have a look?
Comment 2 Kohei Takahashi 2010-11-19 04:02:58 UTC
*** Bug 46550 has been marked as a duplicate of this bug. ***
Comment 3 Jason Merrill 2011-05-29 00:43:57 UTC
Fixed for 4.7.0.

*** This bug has been marked as a duplicate of bug 47687 ***