Created attachment 10873 [details] compiler output
Created attachment 10874 [details] source code (compressed)
g++: Internal error: Killed (program cc1plus) means memory was over used.
I cannot reproduce this at all in 4.0.2, 4.0.0, or 4.0.3.
I see you used precompiled headers. Does the same ICE happen if you don't do that? W.
We don't use pre-compiled headers ourselves. Any precompiles are third-party or standard library, and actually I was unaware that they were used. Can you tell me the files that the header contained? Then I can identify where we got them and might be able to get un-precompiled versions. Ivan
(In reply to comment #6) > We don't use pre-compiled headers ourselves. Any precompiles are third-party or > standard library, and actually I was unaware that they were used. Can you tell > me the files that the header contained? Then I can identify where we got them > and might be able to get un-precompiled versions. All I can say is that in your log file I see the command line /mnt/export/home/ivan/gcc/bin/../libexec/gcc/i686-pc-linux-gnu/4.0.2/cc1plus -fpreprocessed powersetTest.ii -quiet -dumpbase powersetTest.cc -mtune=pentiumpro -auxbase powersetTest -g -O0 -version -o powersetTest.s Since I don't have your sources (and don't want to), I can't help you search further. W.
Well I was really surprised to see this -fpreprocessed option in the -v output, so I did a little digging. It seems that this option is set by the driver whenever -save-temps is set. It does not come from my command line. Try it: compile something -v, and then compile the same thing -v -save-temps and the first -v will not have -fpreprocessed and the second one will. The bug report instructions say to run with -save-temps so I do. You might ask internally why the driver sets these when the user asks for -save-temps. I think the generated -fpreprocessed is irrelevant to the bug, because it will be set on every compile that produces a .ii file for you and I've put in a few of those :-) Ivan
In any case, the pre-processed code doesn't compile anymore with 4.2 and mainline.