CBFalconer wrote:
Eike Lange wrote:
The following program compiles without warnings:
{ 2.1 (20020510), based on gcc-2.95.2 19991024 (release) } program bug;
var i: Integer = 1;
begin if i = 1 then WriteLn ('is 1') else if i = 2 then { do nothing } else { do nothing } end.
Not a bug. Terrible program structure, leading to much confusion, but valid. The null statement is specifically permitted. You will often see such things as:
Use `-W' if you want a warning.
Frank