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] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |