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]
Other format: [Raw text]

c++/8218: Excessively large amount of memory used with classes with large array members


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


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