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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:d11bcbe166c03f722c0e0d41d6e87ac445758fba

commit r11-8025-gd11bcbe166c03f722c0e0d41d6e87ac445758fba
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Apr 7 10:02:07 2021 +0200

    tree-optimization/99947 - avoid v.safe_push (v[0])

    This avoids (again) the C++ pitfall of pushing a reference to
    sth being reallocated.

    2021-04-07  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/99947
            * tree-vect-loop.c (vectorizable_induction): Pre-allocate
            steps vector to avoid pushing elements from the reallocated
            vector.

            * gcc.dg/torture/pr99947.c: New testcase.

Reply via email to