the following (illegal code) loops and allocates memory until cc1plus aborts
-Wall gives you some hint, but else no diagnostic is given. struct SomeType { const char *values[]; }; const char *temp[] = {"607", "612", 0}; SomeType vals[] = { { values : temp, }, 0 }; -- Summary: infinite loop on illegal code Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: doko at ubuntu dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43765