This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/57997] Segmentation fault after returning valarray expression from an auto function


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57997

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |9.0

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The original testcase works on trunk, although it's still possible to create
dangling references from valarray expressions by using `auto` (especially in
functions returning `auto` or `decltype(auto)` which end up returning an
expression template referring to a local valarray on the function's stack).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]