This is the mail archive of the gcc-bugs@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++/6804: timeout compiling simple-but-large object



>Number:         6804
>Category:       c++
>Synopsis:       timeout compiling simple-but-large object
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 24 13:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Richard Henderson
>Release:        3.2 cvs 20020524
>Organization:
>Environment:
alpha-linux and alpha cross sparc64-linux
>Description:
The front end exhausted my patience (more than a minute or two) walking trees in the following example.  If the size of
the "waste" member is reduced to 0x12345, compilation is 
instantaneous.

Compile with just "./cc1plus z.cc".
>How-To-Repeat:
struct A
{
  virtual void foo();
  char waste[0x1234567];
};

struct B
{
  virtual void bar();
};

struct C : public A, public B
{
  virtual void foo();
  virtual void bar();
};

void C::foo() { }
void C::bar() { }
>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]