[Bug fortran/58644] [OOP] Missing .data ref in passing a CLASS array as actual argument to a TYPE.

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 27 13:20:00 GMT 2014


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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #1)
> I don't understand this PR. The test succeeds even when compiled with
> -fsanitize=address.

I think that the PR is justified. The actual argument should be as Tobias says.
Both &D.2108 and &D.2108.data are valid address.  Not only this, they are the
same address.  However, should we ever change the class ABI to put the vptr
first, for example, then this will no longer work.

I believe that my imminent fix for PR63205 will correct this issue and so
eliminate this PR.

Paul



More information about the Gcc-bugs mailing list