[Bug c++/91891] [7 Regression] std::function with lambda default initializer in aggregate construction causes ICE

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891

Richard Biener  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|7.5 |8.0
  Known to fail||7.5.0

--- Comment #5 from Richard Biener  ---
Works in GCC 8.

[Bug c++/91891] [7 Regression] std::function with lambda default initializer in aggregate construction causes ICE

2019-10-22 Thread dascandy at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891

--- Comment #4 from Peter Bindels  ---
For posterity,

#include 
#include 
#include 
#include 
#include 

template 
std::future make_ready_future(T t);

struct y
{
  intv;
  std::function v2 = [this]()  { v; };
};

template 
auto xx(Ts... ts)
{
  return make_ready_future(y{ ts... });
}

int main() {
auto f = xx();
}

[Bug c++/91891] [7 Regression] std::function with lambda default initializer in aggregate construction causes ICE

2019-10-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/91891] [7 Regression] std::function with lambda default initializer in aggregate construction causes ICE

2019-10-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.5

[Bug c++/91891] [7 Regression] std::function with lambda default initializer in aggregate construction causes ICE

2019-09-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891

--- Comment #3 from Jonathan Wakely  ---
(In reply to Peter Bindels from comment #0)
> https://godbolt.org/z/_XP2No
> 
> Confirmed working on 6.x, 8.x and 9.x, but broken on all 7.x available on
> Godbolt. Example is mostly minimized, but not completely.

Please always provide the testcase, not just a link to an external site. This
is required by https://gcc.gnu.org/bugs/