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

            Bug ID: 68203
           Summary: Аbout infinite compilation time on struct with nested
                    array of pairs with -std=c++11
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mirzayanovmr at gmail dot com
  Target Milestone: ---

Tried on g++.EXE (tdm-1) 5.1.0 and g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)

Compile the following minimal source code with command line 'g++ -std=c++11
t.cpp'

#include <utility>
using namespace std;
struct A {
    pair<int, int> values[2000000];
};
int main() {
  A x;
  return 0;
}

Compilation hangs for a very long time.

Reply via email to