Compiler ignores Syntax options
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
Compiler of the trunc version ignores Project Options -> Compiler Options -> Parsing -> Syntax options.
For example, if I deactivate "C style operators" and "Allow LABEL and GOTO" this code compiles without any warning:
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
label
L1;
begin
i:=10;
i+=1;
ShowMessage(IntToStr(i));
goto L1;
ShowMessage('Sowas');
L1:
end;
Additional information:
With Lazarus 1.2.6, the same code and project options calls a warning and the compilation stop.
There is a short thread in the german Lazarusforum: http://www.lazarusforum.de/viewtopic.php?f=19&t=8760
Mantis conversion info:
- Mantis ID: 27972
- OS: 7
- OS Build: 64bit
- Build: 48870
- Platform: Windows
- Version: 1.5 (SVN)