[Bug bootstrap/40788] [4.5 regression] ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 10 09:10:00 GMT 2009



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-08-10 09:10 -------
      *expr_p = targetm.gimplify_va_arg_expr (valist, type, pre_p, post_p);
      SET_EXPR_LOCATION (*expr_p, loc);

is simply bogus.  You can't expect *expr_p being still an expression tree
when you throw the gimplifier on it.  I suggest to simply remove that
location setting here - the target gimplifiers should fix up locations if
necessary.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40788



More information about the Gcc-bugs mailing list