]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: potential aliasing of complex pointer inquiry references [PR118120]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 19 Dec 2024 21:22:52 +0000 (22:22 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 20 Dec 2024 17:23:32 +0000 (18:23 +0100)
commitaed4a2689dbc8ea7e60c1fab9e7f455d99e632b7
tree1eb8b803a4ea2717f472746a4b49dccce097ef2e
parent219ddae16f9d724baeff86934f8981aa5ef7b95f
Fortran: potential aliasing of complex pointer inquiry references [PR118120]

PR fortran/118120
PR fortran/113928

gcc/fortran/ChangeLog:

* trans-array.cc (symbols_could_alias): If one symbol refers to a
complex type and the other to a real type of the same kind, do not
a priori exclude the possibility of aliasing.

gcc/testsuite/ChangeLog:

* gfortran.dg/aliasing_complex_pointer.f90: New test.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/aliasing_complex_pointer.f90 [new file with mode: 0644]