------- Comment #2 from jakub at gcc dot gnu dot org 2010-07-05 10:55 ------- I don't see anything odd on the value-expr (the variable res has been NRVed in the FE to the RESULT_DECL) nor on the assignments from RESULT_DECL.
So, I think either we should guard this hunk in gimplify.c with TREE_CODE (*from_p) == VAR_DECL instead of DECL_P (*from_p), or change the check in tree.h in {,SET_}DECL_DEBUG_EXPR from VAR_DECL_CHECK to DECL_COMMON_CHECK. There is nothing VAR_DECL specific on the lookups (all it needs is DECL_UID, which RESULT_DECL and PARM_DECLs etc. have too). var-tracking will unlikely use it though. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2010-07-04 14:38:16 |2010-07-05 10:55:02 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44808