This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]