public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13621] New: [3.3 regression] cc1plus crashes when compiling a statement expression returning type string
@ 2004-01-08 23:40 debian-gcc at lists dot debian dot org
  2004-01-08 23:59 ` [Bug c++/13621] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-01-08 23:40 UTC (permalink / raw)
  To: gcc-bugs

[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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/13621] [3.3 regression] cc1plus crashes when compiling a statement expression returning type string
  2004-01-08 23:40 [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
@ 2004-01-08 23:59 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-08 23:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-08 23:59 -------
This is a dup of bug 11295 and this will not be fixed for 3.3.3.

*** This bug has been marked as a duplicate of 11295 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13621


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-08 23:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 23:40 [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
2004-01-08 23:59 ` [Bug c++/13621] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).