This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8391: [regression] infinite loop in cp/decl2.c(finish_file)
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>
- Date: Tue, 29 Oct 2002 12:31:04 -0600 (CST)
- Subject: Re: optimization/8391: [regression] infinite loop in cp/decl2.c(finish_file)
Ack, somehow gnats only picked up my name change, but not the analysis:
Confirmed with both 3.2.1pre and CVS. The infinite loop
appears in cp/decl2.c(finish_file), in the
do...while(reconsider) loop. "reconsider" is continuously
re-set to 1 in line 3512 (in the 3.2.1 branch).
A smaller, self-contained example is this:
--------------------------------
struct Outer {
struct Inner { virtual bool f() = 0; };
void g(Inner &) const;
};
inline void h(const Outer &o)
{
struct Local : public Outer::Inner {
virtual bool f() {};
};
Local l;
o.g(l);
}
void f(Outer &req) {
h (req);
}
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth