Somewhere I saw this malformed C++ program could make g++ generate a huge error log:
int main()
{
struct x struct z<x(x(x(x(x(x(x(y,x(y><y*,x(y*w>v<y*,w,x{};
return 0;
}
By repeating (x many times, the error log can grow into >1GB. So this program can be used to drain a victim's system resources. While this problem can be remedied by --fmax-error, I'm curious what is happening inside g++ during its compilation that makes it spit such a log.