It seems a gcc bug. You can file a bug report at http://gcc.gnu.org/bugzilla/, with properly processed source files please.
------------------ Best regards, lh_mouse 2014-12-24 ------------------------------------------------------------- 发件人:Edward Diener <[email protected]> 发送日期:2014-12-24 15:24 收件人:mingw-w64-public 抄送: 主题:[Mingw-w64-public] Out of memory for cc1plus I am seeing an out of memory message of: "cc1plus.exe: out of memory allocating 65536 bytes" when compiling code using mingw-64 from gcc-4.8.1, gcc-4.8.2, gcc-4.8.3, gcc-4.9.0, and gcc-4.9.1. Nor is this just a mingw-64 problem as I am seeing the same error when compiling the same code with mingw and gcc-4.8.1. Strangely this error does not occur when compiling the exact same code using versions from mingw of gcc-4.3.0 through gcc-4.7.2. The code is heavily preprocessor code for my VMD library, which also depends on the Boost PP library. In other words the code is almost entirely involved with testing macro expansions in the libray. As a piece of related information, which may not be very relevant, the latest clang and versions of vc++ from vc++8 through vc++12 do not exhibit any out of memory errors. It seems gcc has regressed in some way starting with version 4.8.1 in its handling of memory allocation. Is this a known problem with with these latest gcc releases ? Is anyone involved with gcc trying to fix the problem if it is known ? Or might this just be a problem in Windows with mingw and mingw-64 implementations of the latest gcc ? The code in question is highly complicated, as befits an advanced macro programming library like VMD, so it would be very difficult to reproduce it in some simpler form. But the fact that it occurs in the latest version of gcc-4 but not in the earlier versions suggests something that has been done wrong and might already be known about. I am compiling under Windows 7 Ultimate with 8 GB of real memory, so I do not think this has anything to do with my hardware itself. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
