groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: groff 1.19.1 compilation with xlC och AIX


From: Werner LEMBERG
Subject: [Groff] Re: groff 1.19.1 compilation with xlC och AIX
Date: Thu, 27 May 2004 08:53:09 +0200 (CEST)

> > Hmm.  I've removed them because I got warnings from the GNU C++
> > compiler.  For both g++ 3.0.1 and 2.95.3, a `friend' declaration is
> > sufficient.  Code like this:
> >
> >   void end_diversions();
> >
> >   class diversion {
> >     friend void do_divert(int append, int boxing);
> >     friend void end_diversions();
> >
> > produces a warning about declaring `end_diversions' twice.  Is
> > somebody on the list who knows the C++ standard well enough to decide
> > whether this is a feature of g++ or whether this really conforms to
> > ANSI C++?
> 
> I should have given the reference I found regarding the problem:
> http://mail.gnu.org/archive/html/ddd/2003-11/msg00078.html
> 
> The link to "the full explanation" explains pretty well why the errors
> occur, and I think that the g++ versions you mention produces warnings
> albeit they shouldn't.

Indeed, this is the answer!  Thanks a lot.

Do recent versions of g++ have a warning for `friend name injection'
problems?


    Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]