Re: [C++ PATCH] Fix ICE with decomp gimplification (PR sanitizer/79589)

2017-02-21 Thread Jason Merrill
OK. On Mon, Feb 20, 2017 at 12:38 PM, Jakub Jelinek wrote: > Hi! > > When generic is unshared, we generally don't unshare DECL_VALUE_EXPRs, > so those are assumed to be not shared, otherwise as in the testcase > we can clear first argument of a COMPOUND_EXPR after it has been

[C++ PATCH] Fix ICE with decomp gimplification (PR sanitizer/79589)

2017-02-20 Thread Jakub Jelinek
Hi! When generic is unshared, we generally don't unshare DECL_VALUE_EXPRs, so those are assumed to be not shared, otherwise as in the testcase we can clear first argument of a COMPOUND_EXPR after it has been gimplified in one use and by that clobbering all others. Bootstrapped/regtested on