Article View: gnu.groff.bug
Article #25Re: rename comment_info.proc to comment_info.pmf
From: Simon J Gerraty
Date: Wed, 08 Apr 1992 00:20
Date: Wed, 08 Apr 1992 00:20
32 lines
1587 bytes
1587 bytes
In <199204070034.AA19054@taureau.melb.bull.oz.au> sjg@melb.bull.oz.AU (Simon J Gerraty) writes:
>DESCRIPTION OF INCORRECT BEHAVIOUR:
>This same compiler and library compile groff ok on sun386 and
>sun4c. On the Bull DPX/2, then name proc in struct comment_info
>appears to conflict with _something_ in one of the system header
>files - though I was unable to track it down. The compilation
>of ps/psrm.c fails with initialization between incompatible
>pointer types.
>SUGGESTED FIX:
>this patch changes the name from proc to pmf
Forget it. It turns out the problem is that one of the system
headers contains a struct declaration like:
struct foo
{
struct proc *pfoo;
} ;
This seems to polute the name space, causing the struct
comment_info in ps/psrm.c to lose its proc member!
I don't know whether this is a gcc bug or a C++ feature, but if
it is a feature of C++ then it seems it would be nearly
impossible to write portable code.
--
Simon J. Gerraty <sjg@melb.bull.oz.au> (Work)
<sjg@zen.void.oz.au> (Home)
#include <disclaimer,_witty_comment>
Technical Details
Message-ID:
<1992Apr8.002011.647@melb.bull.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!melb.bull.oz.AU!sjgReferences:
<199204070034.AA19054@taureau.melb.bull.oz.au>Show Full Headers
Complete Article Headers
Newsgroups: gnu.groff.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!melb.bull.oz.AU!sjg From: sjg@melb.bull.oz.AU (Simon J Gerraty) Subject: Re: rename comment_info.proc to comment_info.pmf Message-ID: <1992Apr8.002011.647@melb.bull.oz.au> Sender: gnulists@ai.mit.edu Organization: Bull HN Information Systems Australia References: <199204070034.AA19054@taureau.melb.bull.oz.au> Distribution: gnu Date: Wed, 8 Apr 1992 00:20:11 GMT Approved: bug-groff@prep.ai.mit.edu Lines: 33