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

            Bug ID: 84988
           Summary: Compiler hang in chkp_type_bounds_count for large
                    arrays
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
  Target Milestone: ---

Trying a variation of PR84964, I noticed that:

struct a {
  int b[(1ULL << 60)];
};
void c(...) { c(a()); }

caused the compiler to loop "forever" (but not really) in
chkp_type_bounds_count on x86_64.  While that might not matter for test cases
like this, it seems like we might be doing unnecessary work in general.

Reply via email to