https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80321

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-04-07
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 41154
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41154&action=edit
gcc7-pr80321.patch

Untested fix.  The problem is that if we see in BLOCK_NONLOCALIZED_VARS
current_function_decl, we don't treat it as declaration (which is everything
that is not current_function_decl among other things), therefore we endlessly
recurse on it.  If we are already processing the current_function_decl, we have
a DIE created for it and supposedly also at the correct position in the DIE
tree, and that is all we care for declarations, we don't do further processing
for those.

Reply via email to