This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/8218: Excessively large amount of memory used with classes with large array members
- From: brd at paradise dot net dot nz
- To: gcc-gnats at gcc dot gnu dot org
- Date: 14 Oct 2002 01:50:37 -0000
- Subject: c++/8218: Excessively large amount of memory used with classes with large array members
- Reply-to: brd at paradise dot net dot nz
>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: