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 c++/82899] *this in constructors could not alias with reference input parameters of the same type


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

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