Package: gcc Version: 3.3.1-2 When compiling the given C++ program, gcc fills up all available memory, then exits with an error message. The problem seems to be that gcc cannot handle a statement expression returning a std::string. The command and error message are: cirodrig:~/src/tmp$ g++ test.cpp g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bugs, please see /usr/share/doc/debian/bug-reporting.txt.
The body of test.cpp is as follows: #include <string> int main() { ({std::string str; str;}) + "a"; return 1; } The preprocessed file test.ii is attached. I am using Debian linux 3.0 testing/unstable.
test.ii.bz2
Description: Preprocessed source