Maurice Lombardi wrote:
Carel Fellinger wrote:
On Thu, Apr 18, 2002 at 10:42:23AM +0200, Adam Naumowicz wrote: ...
As far as I got the ISO standard correct, the 'pword' definition should only be considered a foreward declaration of 'word' when 'word' is undefined and has a definition later in the same block. So the current behaviour of GPC
Well, according to iso10206 and iso7185, section 6.2.2.5 in both:
6.2.2.5
When an identifier or label has a defining-point for region A and another identifier or label having the same spelling has a defining-point for some region B enclosed by A, then region B and all regions enclosed by B shall be excluded from the scope of the defining-point for region A.
To me this contradicts your `when .. is undefined', so I still think it's a bug.
So the behavior of gpc for ordinary identifiers like "foo" in my previous snippet is standard conformant, and the different behavior for the special case of "word" is not.
I agree. This indicates (to me) that the predefinition of word is not occurring in the encompassing block 0. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!