This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libg++ won't build with latest snapshots
On Dec 22, 1999, Mark Mitchell <mark@codesourcery.com> wrote:
>>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
Alexandre> I can't find any variable or function under that name.
Alexandre> But here are the backtraces for the two occurrences of
Alexandre> errors, in case this helps figuring it out:
> It does -- thanks. This is what I was afraid of -- we should be doing
> something at semantic analysis time that we're postponing to expansion
> time, and that's where the problem lies, I think. The good news is
> that fixing this is probably relatively routine.
Great! Here's the testcase simplified from Integer.cc that I'm
checking in. It's *very* similar to the one simplified from
Rational.cc, so hopefully a single fix will take care of both:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// distilled from libg++'s Integer.cc
// Special g++ Options:
// crash test - XFAIL *-*-*
inline int bar () return r {}
int& foo (int& x) {
bar ();
return x;
}
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them