------- Comment #10 from dodji at gcc dot gnu dot org  2008-07-28 07:19 -------
Created an attachment (id=15968)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15968&action=view)
try scanning DECL_EXPR instead of VAR_DECLs directly.

@Jason: I have tried scanning DECL_EXPR and setting only VAR_DECL that are
children of DECL_EXPR. It does not work. This patch is what I have done. Maybe
I have done something bad ?

My understanding is that by walking DECL_EXPRs and getting their associated
VAR_DECL (using DECL_EXPR_DECL), all VAR_DECLs should be touched because every
single variable must be declared at least once.

So, are there cases where a VAR_DECL has never had a parent DECL_EXPR ?


-- 


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

Reply via email to