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

            Bug ID: 90801
           Summary: A recurring hang
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhonghao at pku dot org.cn
  Target Milestone: ---

A previous bug report complains that gcc hangs when compiling large
zero-initialized std::array, and it is marked as fixed. My gcc is 10.0.0, but
it still hangs given the following code sample:

#include <array>

class Foo { public: Foo() {} int i; };

int main() {
 std::array<Foo, 1000000> arr = {{}}; // Halting problem.
}

Reply via email to