At 09:35 18/04/2002 , vous avez écrit:
On Wed, 17 Apr 2002, Carel Fellinger wrote:
Hai,
after porting a few thousand lines I think I spotted the next bug.
take this simple program:
program err; type pword = ^word; word = boolean;
word is predeclared as unsigned 32 bit integer. Should gpc complain already here or warn and accept the redefinition and do the job?
For Free Pascal, we came also accross that problem, and we decided that ^word should allways be first considered as a forward declaration that can be defined later in the same type block.
I don't remember if this is specified by the pascal language, but its at least compatible with BP and Delphi/Kylix.
After reconsidering it, I also think that this is a more logical approach.
Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99