View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0021926FPCCompilerpublic2012-05-03 04:032012-05-03 21:16
ReporterKouichi Tamiya 
Assigned ToJonas Maebe 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionno change required 
Platformintel i7-2700KOSWindows OS VersionWindows 7/ 64bit
Product Version2.6.0Product Build 
Target VersionFixed in Version 
Summary0021926: inscription "left" issue.
Descriptionfirst inscription "left" always produces Error: Duplicate identifier "Left".

Neither Delphi2009 compiler nor inscription "Right" do not.

 
Steps To ReproduceIn Lazarus IDE version #0.9.30.4 issued 2012-03-14, put Button1 and click it, declaratin integer varible, as follows:

procedure TForm1.Button1Click(Sender: TObject);
var left:integer;
begin
  left:=0;
end
TagsNo tags attached.
FPCOldBugId
Fixed in Revision
Attached Files

- Relationships

-  Notes
(0059206)
Marco van de Voort (manager)
2012-05-03 09:37

Do you use {$mode Delphi} or Lazarus' default {$mode objfpc} ?
(0059220)
Jonas Maebe (manager)
2012-05-03 21:16

That's because TForm is a descendent of TControl, and TControl has a property called "Left". FPC forbids hiding properties/fields using local variables or parameter names because that can easily lead to hard to find bugs.

Compile in Delphi mode if you want Delphi-compatibility.

- Issue History
Date Modified Username Field Change
2012-05-03 04:03 Kouichi Tamiya New Issue
2012-05-03 09:37 Marco van de Voort Note Added: 0059206
2012-05-03 09:37 Marco van de Voort Status new => feedback
2012-05-03 21:16 Jonas Maebe Status feedback => resolved
2012-05-03 21:16 Jonas Maebe Resolution open => no change required
2012-05-03 21:16 Jonas Maebe Assigned To => Jonas Maebe
2012-05-03 21:16 Jonas Maebe Note Added: 0059220



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker