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: [C++ PATCH] [PR18354] Unary plus as template argument


Jason Merrill wrote:

I think it's ok to keep it in the C and C++ front ends, so long as it's
removed by gimplification.  Usually we want to strip redundant
NOP/CONVERT_EXPRs, and having a separate tree code allows us to handle this
case differently.

Agreed.

(Though I believe the longer-term fix would be to track lvalue-ness on the side during parsing, and then forget about it later. It only matters within a given statement. That would avoid the extra tree node.)

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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