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] |
Jason Merrill <jason@redhat.com> 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. OK then, what about this patch? Tested on i686-pc-linux-gnu. Giovanni Bajo cp/ PR c++/18354 * typeck.c (build_unary_op) <CONVERT_EXPR, NEGATE_EXPR>: Unify code. Make sure the result is always a rvalue. testsuite/ PR c++/18354 * g++.dg/template/nontype11.C: New test.
Attachment:
patch-pr18354.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |