Re: [PATCH] Fix PR55570

2012-12-03 Thread Jakub Jelinek
On Mon, Dec 03, 2012 at 01:36:28PM +0100, Marek Polacek wrote: > We segfaulted on attached testcase, because we were accessing > ->typed.type field via TREE_TYPE, but IDENTIFIER_NODEs don't contain > ->typed element at all. Fixed by switching the expressions in > a condition, so we always first c

[PATCH] Fix PR55570

2012-12-03 Thread Marek Polacek
We segfaulted on attached testcase, because we were accessing ->typed.type field via TREE_TYPE, but IDENTIFIER_NODEs don't contain ->typed element at all. Fixed by switching the expressions in a condition, so we always first check that we're operating on INTEGER_CST. Regtested/bootstrapped on x86