[fpc-devel]Bug or missing documentation?
BiPolar
BiPolar at SoftHome.net
Fri Nov 7 03:23:25 CET 2003
Hello.
The code below gives: "foo.pas(13,33) Error: Duplicate identifier NAME"
when compiled with -S2. It compiles ok with -Sd though.
The thing is, I coudn't find any reference to this difference of
behavior under the "Compiler Modes" section of FPC docs, neither in
other sections.
Is this a bug, or I missed something in the docs?
Thanks for your time and work.
Oscar Lesta. (not on the mail list, please CC any reply)
(using FPC 1.0.8-pre1 for BeOS)
----------------------------------------------------------------------
unit foo;
interface
type
TBaseClass = class
public
aName : string;
end;
TChildClass = class(TBaseClass)
public
procedure Test(aName : string);
end;
implementation
procedure TChildClass.Test(aName : string);
begin
// do nothing.
end;
end.
----------------------------------------------------------------------
More information about the fpc-devel
mailing list