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] PR c++/80544 strip cv-quals from cast results


On 23/05/17 13:58 -0400, Nathan Sidwell wrote:
On 05/23/2017 01:56 PM, Jonathan Wakely wrote:
On 18/05/17 13:44 -0400, Nathan Sidwell wrote:

References can't be CV qualified, so the REFERENCE_TYPE check seems superfluous?

True. I did it because that matches the semantics of the cast
according to the standard, but it isn't needed here. Is it worth
keeping anyway, to avoid a redundant call to cv_unqualified?

I don't think it's worth checking.

Ah yes, cp_build_qualified_type_real returns early if there's nothing
to do. OK, I'll remove those checks. Thanks.




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