This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13621] New: [3.3 regression] cc1plus crashes when compiling a statement expression returning type string
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2004 23:40:00 -0000
- Subject: [Bug c++/13621] New: [3.3 regression] cc1plus crashes when compiling a statement expression returning type string
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[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