bug-groff
[Top][All Lists]
Advanced

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

Re: groff 1.19.1 compilation with xlC och AIX


From: Niklas Edmundsson
Subject: Re: groff 1.19.1 compilation with xlC och AIX
Date: Wed, 26 May 2004 21:41:56 +0200 (CEST)

On Wed, 26 May 2004, Werner LEMBERG wrote:

> > * Some functions are used without prototypes (producing very obscure
> >   error messages in true xlC manner ;).
>
> 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.

/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Niklas Edmundsson, Admin @ {acc,hpc2n,ing}.umu.se    |   address@hidden
---------------------------------------------------------------------------
 It's kinda fun to consummate the impossible.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




reply via email to

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