Compiler bug?

  • 1
  • 2
  • 3
  • Page 2 of 3
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 28.08.2021 - 13:39  ·  #9
Thanks miparo.

Fix attached.

This type of testing is exactly what I need to help me maintain the software, so thank you again.
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 956
Registered: 09 / 2007
Subject:

Re: Compiler bug?

 · 
Posted: 28.08.2021 - 22:54  ·  #10
Hi Merlin,
thanks great job :)

But strings are not accepted.
And all other types please test :) :)

Quote

type

tParmRecX = record
eProjectName : String[12];
end;

var
parX : array[0..59] of byte;
ParmRecX[@parX] : tParmRecX;
......
......
ProgName : String[12];

begin
ProgName := ParmRecX.eProjectName;


miparo
Harry
Moderator
Avatar
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2080
Registered: 03 / 2003
Subject:

Re: Compiler bug?

 · 
Posted: 29.08.2021 - 11:39  ·  #11
Hello Merlin,

you should only make the updates available in one place / thread.
Otherwise it is a little confusing.

Regards
Harry

Great job :)
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 29.08.2021 - 12:38  ·  #12
Hi Miparo

Fix attached.

Quote
And all other types please test :) :)


This is of course not possible.

The best I can hope to do is batch test all demo programs (although that will of course only pick up compile issues, not run issues) but that is of course very time expensive. I will look into how I can do batch runs.
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 29.08.2021 - 12:43  ·  #13
@Harry

I agree, but this is temporary.

I am trying to build an installer that will run on the main site. It is clear though that I need to build a full install first, which is a shame, as there are several hundred files. And of course I will need to test.

So please bear with me for a while :-)
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 956
Registered: 09 / 2007
Subject:

Re: Compiler bug?

 · 
Posted: 29.08.2021 - 20:25  ·  #14
Quote by Merlin

Hi Miparo

Fix attached.

Quote
And all other types please test :) :)


This is of course not possible.

The best I can hope to do is batch test all demo programs (although that will of course only pick up compile issues, not run issues) but that is of course very time expensive. I will look into how I can do batch runs.


Hi Merlin,
Sorry. I meant the other types in the record.
Int,Float .....


and the next bug :)
Quote

Unit Comptest;

interface


type
tParmRecX = record
xProgVerStart : word;
eProjectName : string[12];
end;
{--------------------------------------------------------------}
{ Var Declarations }
var

{--------------------------------------------------------------}
{ functions }


implementation
// local part

{--------------------------------------------------------------}
{ Type Declarations }
type
TWzSocket = record
inherit tParmRecX;
end;



This happens only in a unit when the two records are separated by interface/implementation


miparo
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Compiler bug?

 · 
Posted: 30.08.2021 - 09:29  ·  #15
Quote by Merlin

The best I can hope to do is batch test all demo programs (although that will of course only pick up compile issues, not run issues) but that is of course very time expensive. I will look into how I can do batch runs.

Some time ago I've researched unit testing frameworks which could be used in microcontroller world. TAP looked like a good candidate which could be adapted for using MCU serial output stream as a test result (AvrCo simulator serial output stream?). With some effort even continous integration should not be that far away. This automation could save time needed for testing in the long run.

http://testanything.org
https://sourceforge.net/projects/tap4pascal/
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 30.08.2021 - 09:42  ·  #16
Thank Avra, I will look into this.
  • 1
  • 2
  • 3
  • Page 2 of 3
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   130   144 · Page-Gen-Time: 0.023826s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI