http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53510
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, memory-hog Component|c++ |middle-end Target Milestone|--- |4.8.0 Summary|OOM while compile some code |[4.8 Regression] OOM while | |compile some code --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-28 17:21:05 UTC --- #1 0x0000000000f7b7ea in read_line (file=0x18d9b50) at /home/pinskia/src/local/gcc/gcc/input.c:111 111 memcpy (ptr, string, pos); (gdb) p pos $2 = 96889 (gdb) p/x pos $3 = 0x17a79 So this is the error message which is causing the huge memory usage.