[Bug c++/105946] [12/13 Regression] ICE in maybe_warn_pass_by_reference, at tree-ssa-uninit.cc:843

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 10:53:14 GMT 2022


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

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

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

commit r13-1086-ge07a876c07601e1f3a27420f7d055d20193c362c
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Jun 14 11:10:13 2022 +0200

    tree-optimization/105946 - avoid accessing excess args from uninit diag

    uninit diagnostics uses passing via reference and access attributes
    but that iterates over function type arguments which can in some
    cases appearantly outrun the actual arguments leading to ICEs.
    The following simply ignores not present arguments.

    2022-06-14  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/105946
            * tree-ssa-uninit.cc (maybe_warn_pass_by_reference):
            Do not look at arguments not specified in the function call.


More information about the Gcc-bugs mailing list