Re: C++ PATCH to fix ICE with NSDMI and this pointer (PR c++/79796)

2017-03-06 Thread Jason Merrill
OK. On Fri, Mar 3, 2017 at 6:34 AM, Marek Polacek wrote: > We weren't replacing PLACEHOLDER_EXPR in the following testcase, leading to a > crash in the gimplifier. The fix seems to be to use replace_placeholders, the > question is where. These three functions have it: >

C++ PATCH to fix ICE with NSDMI and this pointer (PR c++/79796)

2017-03-03 Thread Marek Polacek
We weren't replacing PLACEHOLDER_EXPR in the following testcase, leading to a crash in the gimplifier. The fix seems to be to use replace_placeholders, the question is where. These three functions have it: cp_gimplify_init_expr store_init_value build_new_1 But we call neither so I tried adding