Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

Error in synedit from new SVN revision in Lazarus (31941)

11 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juan Sánchez

Hello,

in new SVN revision (31941) from this morning, compilig Lazarus appears this error (In Win32):

Compiling syneditlines.pas
syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is never used
synedit.pp(4710,12) Error: Wrong number of parameters specified for call to "WMSetFocus"
synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

Regards,
Juan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110811/7f1d3a2c/attachment.html>

Reply by email

Vincent Snijders
to Juan Sánchez

2011/8/11 Juan S?nchez :

Show quoted text 12 lines
Hello, ??? in new SVN revision (31941) from this morning, compilig Lazarus appears this error (In Win32): Compiling syneditlines.pas syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is never used synedit.pp(4710,12) Error: Wrong number of parameters specified for call to "WMSetFocus" synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

What fpc version do you use? I am aware of some issues using fpc 2.7.1, because of
http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls

Vincent

Reply by email

Juan Sánchez
to Vincent Snijders

2011/8/11 Vincent Snijders

Show quoted text 25 lines
2011/8/11 Juan S?nchez : > Hello, > > in new SVN revision (31941) from this morning, compilig Lazarus appears > this error (In Win32): > > Compiling syneditlines.pas > syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is > never used > synedit.pp(4710,12) Error: Wrong number of parameters specified for call to > "WMSetFocus" > synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted What fpc version do you use? I am aware of some issues using fpc 2.7.1, because of http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls Vincent

Maybe because FPC. I'm using FPC 2.7.1 from SVN updated today. Yerstarday it compiled OK with 2.7.1 but today not.

Juan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110811/21f5095e/attachment.html>

Reply by email

Juan Sánchez
to Vincent Snijders: 2011/8/11 Juan S?nchez : What fpc version do you use? I am aware of some issues using fpc…

Indeed, I found that with FPC 2.4.4 the error does not occur.

The problem seems to be FPC 2.7.1
Juan.

2011/8/11 Vincent Snijders

Show quoted text 29 lines
2011/8/11 Juan S?nchez : > Hello, > > in new SVN revision (31941) from this morning, compilig Lazarus appears > this error (In Win32): > > Compiling syneditlines.pas > syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is > never used > synedit.pp(4710,12) Error: Wrong number of parameters specified for call to > "WMSetFocus" > synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted What fpc version do you use? I am aware of some issues using fpc 2.7.1, because of http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls Vincent -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110811/96cb227f/attachment.html>

Reply by email

Graeme Geldenhuys
to Juan Sánchez
Juan S?nchez wrote
Indeed, I found that with FPC 2.4.4 the error does not occur.

Bottom line... I don't think using unstable (trunk) versions from two products together is always such a wise choice. ;-)

Regards,
- Graeme -

Reply by email

Hans-Peter Diettrich
to Vincent Snijders: 2011/8/11 Juan S?nchez : What fpc version do you use? I am aware of some issues using fpc…
What fpc version do you use? I am aware of some issues using fpc 2.7.1, because of http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls

Can you explain what this really means?

I don't understand "anonymous", "call through", and the example :-(

IMO a compiler should reject ambigous overloaded procedures, i.e. when the significant parameters only differ in type size.

I understand that there was a problem, when files larger than 4GB occured in Windows, so that TStream.Size and .Position had to be updated from LongInt to Int64. The choice of LongInt already was a questionable decision, because it would restrict the file size to 2GB. When the Delphi solution requires overloaded methods, i.e. in TStream:

     procedure SetSize(NewSize: Longint); virtual;overload;
     procedure SetSize(const NewSize: Int64); virtual;overload;

we are in trouble, since it's up to the compiler to choose one of these methods - based on what criteria? :-(

DoDi

Reply by email

Flávio Etrusco
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 9 lines
Vincent Snijders schrieb: > What fpc version do you use? I am aware of some issues using fpc > 2.7.1, because of > http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls Can you explain what this really means? I don't understand "anonymous", "call through", and the example :-(

anoymous -> "inherited" instead of "inherited SomeCall(AParam: Type);"

call through -> well, I'm no native English speaker either, and I also found "through" isn't an appropriate word. IMVHO it's the new behavior that calls "through" the parent into the exact overriden method ;-) The example is clear for me. Anonymous 'inherited' will call an exact inherited implementation instead of a compatible overload in the parent/intermediate ancestors. I wasn't really aware of the old/current-release FPC behavior :-o

IMO a compiler should reject ambigous overloaded procedures, i.e. when the significant parameters only differ in type size.

It doesn't reject the overloads?

Best regards,
Fl?vio

Reply by email

Flávio Etrusco
to Vincent Snijders: 2011/8/11 Juan S?nchez : What fpc version do you use? I am aware of some issues using fpc…
Vincent Snijders wrote 19 lines
2011/8/11 Juan S?nchez : > Hello, > > ??? in new SVN revision (31941) from this morning, compilig Lazarus appears > this error (In Win32): > > Compiling syneditlines.pas > syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is > never used > synedit.pp(4710,12) Error: Wrong number of parameters specified for call to > "WMSetFocus" > synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted What fpc version do you use? I am aware of some issues using fpc 2.7.1, because of http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls Vincent

Vincent, on a side note, are you sure this applies to 2.7 and not 2.5/2.6? I believed the IUnknown changes had been in trunk for a long time and would be in 2.6, won't they?

Best regards,
Fl?vio

Reply by email

Vincent Snijders
to Flávio Etrusco

2011/8/11 Fl?vio Etrusco :

Vincent, on a side note, are you sure this applies to 2.7 and not 2.5/2.6? I believed the IUnknown changes had been in trunk for a long time and would be in 2.6, won't they?

What does IUnkown has to do with it?
Besides, the snapshots at
ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/ seem to indicate this is a recent issue.

Vincent

Reply by email

Sven Barth
to Flávio Etrusco: On Thu, Aug 11, 2011 at 7:07 AM, Vincent Snijders Vincent, on a side note, are you sure…
Fl?vio Etrusco wrote 25 lines
On Thu, Aug 11, 2011 at 7:07 AM, Vincent Snijders wrote: > 2011/8/11 Juan S?nchez: >> Hello, >> >> in new SVN revision (31941) from this morning, compilig Lazarus appears >> this error (In Win32): >> >> Compiling syneditlines.pas >> syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is >> never used >> synedit.pp(4710,12) Error: Wrong number of parameters specified for call to >> "WMSetFocus" >> synedit.pp(9000) Fatal: There were 1 errors compiling module, stopping >> Fatal: Compilation aborted > > What fpc version do you use? I am aware of some issues using fpc > 2.7.1, because of > http://wiki.freepascal.org/User_Changes_Trunk#Anonymous_inherited_calls > > Vincent Vincent, on a side note, are you sure this applies to 2.7 and not 2.5/2.6? I believed the IUnknown changes had been in trunk for a long time and would be in 2.6, won't they?

Those changes of User_Changes_Trunk that are already part of 2.6 will be moved to User_Changes_2.6.0 (or so) when someone of the FPC devs finds the time to check/move them.

Regards,
Sven

Reply by email

Hans-Peter Diettrich
to Flávio Etrusco: On Thu, Aug 11, 2011 at 12:32 PM, Hans-Peter Diettrich anoymous -> "inherited" instead of…
> I don't understand "anonymous", "call through", and the example :-( anoymous -> "inherited" instead of "inherited SomeCall(AParam: Type);"

Okay, that makes sense.

call through -> well, I'm no native English speaker either, and I also found "through" isn't an appropriate word. IMVHO it's the new behavior that calls "through" the parent into the exact overriden method ;-)

Makes sense, too.

Show quoted text 10 lines
The example is clear for me. Anonymous 'inherited' will call an exact inherited implementation instead of a compatible overload in the parent/intermediate ancestors. I wasn't really aware of the old/current-release FPC behavior :-o > IMO a compiler should reject ambigous overloaded procedures, i.e. when the > significant parameters only differ in type size. > It doesn't reject the overloads?

How else would the example compile?

test(b: byte) is not really distinguishable from test(b: longint).

DoDi

Reply by email