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/25/2016 11:35 AM, Marek Polacek wrote:
On Fri, Apr 22, 2016 at 03:28:27PM -0400, Jason Merrill wrote:On Fri, Apr 22, 2016 at 2:12 PM, Marek Polacek <polacek@redhat.com> wrote:+cp_stabilize_reference (tree ref) +{ + if (TREE_CODE (ref) == PREINCREMENT_EXPR + || TREE_CODE (ref) == PREDECREMENT_EXPR)I think we want to do this for anything stabilize_reference doesn't handle specifically, not just pre..crement.Which would mean something along the lines of the following, I hope.
Yes, except let's drop this case:
+ case COMPOUND_EXPR:
because stabilize_expr will do the wrong thing for lvalue COMPOUND_EXPR. OK with that change. Jason
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |