[Bug c++/13621] New: [3.3 regression] cc1plus crashes when compiling a statement expression returning type string
debian-gcc at lists dot debian dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 8 23:40:00 GMT 2004
[forwarded from http://bugs.debian.org/224413]
ok for 3.2.3 and CVS HEAD 20040104, on 3.3 CVS 20031229 cc1plus crashes after
the memory is exhausted.
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;
}
--
Summary: [3.3 regression] cc1plus crashes when compiling a
statement expression returning type string
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13621
More information about the Gcc-bugs
mailing list