[fpc-devel] Issue 20124: Error with static "direct field" properties
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Sep 1 18:34:06 CEST 2011
On 01 Sep 2011, at 18:01, Florian Klaempfl wrote:
> Am 01.09.2011 17:48, schrieb Alexander Klenin:
>> [Is there any method to either comment on or re-open resolved isses?
>> It is very frustrating to be forced to switch comminication channel]
Only the submitter and people with "developer" access (or above) can do that, afaik.
>> I think this issue is resolved prematurely.
>> First, I do not see a reason why normal property can not be
>> implemented by static field.
>> Second, even is such a reason is provided, compiler should error out
>> instead of generating bogus code
>> (Optimal solution would be to issue a warning or hint and generate
>> correct code).
>> Either way, "no change required" is IMHO wrong resolution.
>
> Maybe you should reread Jonas' comment? Apparently something in trunk
> has been changed regarding this already.
Trunk indeed gives an error if you don't use a class property:
Free Pascal Compiler version 2.7.1 [2011/08/18] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling tt.pp
tt.pp(2,2) Warning: Illegal compiler directive "$STATIC"
tt.pp(23,50) Error: Illegal symbol for property access
tt.pp(24,48) Error: Illegal symbol for property access
tt.pp(60) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Jonas
More information about the fpc-devel
mailing list