c++/1053: g++ runs out of memory on Really Simple Input

gustav@virtutech.se gustav@virtutech.se
Tue Dec 12 13:26:00 GMT 2000


>Number:         1053
>Category:       c++
>Synopsis:       g++ runs out of memory on Really Simple Input
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 12 13:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     gustav@virtutech.se
>Release:        gcc version 2.97 20001205 (experimental)
>Organization:
>Environment:
Linux 2.2.16-22 #1 i686 unknown
>Description:
g++ runs out of memory when given a class containing a large array member.
>How-To-Repeat:
Compile the following with g++:

class foo {
  char bar[0x400000];
};
>Fix:
Compile with gcc instead (weird, huh?)
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list