On 04/18/2018 01:07 AM, Jason Merrill wrote:
I wonder if it would work to use CONVERT_EXPR for reinterpret_cast.

That's kind of the wrong way round, isn't it? NOP_EXPRs are for things that don't generate code, which a reinterpret_cast is. static_cast adds a constant, which is only zero for conversions through the primary base (or suitably placed empty base). CONVERT_EXPR would seem more natural there?

nathan
--
Nathan Sidwell

Reply via email to