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

--- Comment #10 from Igor Zamyatin <izamyatin at gmail dot com> ---
(In reply to Jakub Jelinek from comment #9)
> (In reply to H.J. Lu from comment #8)
> > (In reply to H.J. Lu from comment #7)
> > > (In reply to Igor Zamyatin from comment #6)
> > > > Yes, I was going to post it after complete testing
> > > 
> > > You should set DECL_SEEN_IN_BIND_EXPR_P when setting
> > > DECL_CONTEXT, similar to gimple_add_tmp_var.
> > 
> > Or we can use create_tmp_var.
> 
> That is much better idea, it will handle tons of other things, like setting
> DECL_ARTIFICIAL/DECL_IGNORED_P flags etc.  In C++ FE, cp-array-notation.c
> apparently uses get_temp_regvar, which is also fine (but only defined in C++
> FE).

 Yes, I tried create_tmp_var but it was undefined so I thought it's not a good
idea...
Will try further with it then

Reply via email to