[Bug c/101204] New: infinite recursion in gtype-desc.c

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 25 07:39:54 GMT 2021


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

            Bug ID: 101204
           Summary: infinite recursion in gtype-desc.c
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For a recent gcc build with clang, I get:

gtype-desc.c:10853:1: warning: all paths through this function will call itself
[-Winfinite-recursion]

Source code is

void
gt_pch_nx (int_hash<key_type_t,0,UINT_MAX>* x ATTRIBUTE_UNUSED,
        ATTRIBUTE_UNUSED gt_pointer_operator op,
        ATTRIBUTE_UNUSED void *cookie)
{
    gt_pch_nx (&((*x)), op, cookie);
}

I think this has probably first appeared in the last week or so.


More information about the Gcc-bugs mailing list