[Bug c++/82899] *this in constructors could not alias with reference input parameters of the same type
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 18 22:21:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82899
--- Comment #24 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Fri May 18 22:21:20 2018
New Revision: 260383
URL: https://gcc.gnu.org/viewcvs?rev=260383&root=gcc&view=rev
Log:
Aliasing 'this' in a C++ constructor
2018-05-18 Marc Glisse <marc.glisse@inria.fr>
PR c++/82899
gcc/
* tree-ssa-structalias.c (create_variable_info_for_1): Extra argument.
(intra_create_variable_infos): Handle C++ constructors.
gcc/testsuite/
* g++.dg/pr82899.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/pr82899.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-structalias.c
More information about the Gcc-bugs
mailing list