This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix PR44555


Dave Korn <dave.korn.cygwin@gmail.com> writes:

>   Yes, I was suggesting that the standard could be adjusted to say the same
> about &((*a).b), that the indirection and address operators are not evaluated
> there either,

The problematic part is the member selector, which results in a pointer
that is different from the original null pointer, especially when it's
not the first member.  So the expression cannot fully be a no-op.  In
the &*E case you have two operations that are inverse to each other.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


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