[Bug c++/91675] [9/10 Regression] Memory corruption with std::function

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

Jonathan Wakely  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Jonathan Wakely  ---
Yes, looks like it. Thanks.

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

[Bug c++/91675] [9/10 Regression] Memory corruption with std::function

2019-09-06 Thread ensadc at mailnesia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91675

ensadc at mailnesia dot com changed:

   What|Removed |Added

 CC||ensadc at mailnesia dot com

--- Comment #2 from ensadc at mailnesia dot com ---
Duplicate of PR 90393?

[Bug c++/91675] [9/10 Regression] Memory corruption with std::function

2019-09-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91675

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |9.3

[Bug c++/91675] [9/10 Regression] Memory corruption with std::function

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

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
  Known to work||8.3.0
   Keywords||wrong-code
   Last reconfirmed||2019-09-05
  Component|libstdc++   |c++
 CC||jason at gcc dot gnu.org
 Ever confirmed|0   |1
Summary|Memory corruption with  |[9/10 Regression] Memory
   |std::function   |corruption with
   ||std::function
  Known to fail||10.0, 9.2.0

--- Comment #1 from Jonathan Wakely  ---
Confirmed. I think it's a compiler bug though, not libstdc++, as it started
with r260272:

PR c++/64372 - CWG 1560, gratuitous lvalue-rvalue conversion in ?:

* call.c (build_conditional_expr_1): Don't force_rvalue when one arm
is a throw-expression.