c++/8218: Excessively large amount of memory used with classes with large array members
brd@paradise.net.nz
brd@paradise.net.nz
Sun Oct 13 18:56:00 GMT 2002
>Number: 8218
>Category: c++
>Synopsis: Excessively large amount of memory used with classes with large array members
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 13 18:56:06 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: brd@paradise.net.nz
>Release: 3.1
>Organization:
>Environment:
RH 7.3
>Description:
//--------------------
class x
{
public:
unsigned long mem[1024*1024*10];
x();
};
class y : public x
{
public:
y();
};
//--------------------
The preceeding piece of code consumes a VERY large amount of memory to
compile.
"record_subobject_offset" in class.c is being
called for EVERY item in x::mem
>How-To-Repeat:
compile the code fragment in the description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list