https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69220
Bug ID: 69220 Summary: Internal error with array of negative size and initializers for it Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: j2108665 at trbvm dot com Target Milestone: --- GCC seems to loop infinitely when this code is given: int main() { int* p = new int[-1]{1}; } Limiting its CPU time produces an internal compiler error. Notice that with an empty braced-init-list (so without the '1'), compilation succeeds. Compiled with: $ g++ -std=c++11 test.cpp