This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6804: timeout compiling simple-but-large object
- From: rth at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 24 May 2002 20:44:31 -0000
- Subject: c++/6804: timeout compiling simple-but-large object
- Reply-to: rth at redhat dot com
>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: