Compiler bug?

  • 1
  • 2
  • 3
  • Seite 2 von 3
Merlin
Administrator
Avatar
Geschlecht:
Alter: 25
Beiträge: 1474
Dabei seit: 03 / 2005
Betreff:

Re: Compiler bug?

 · 
Gepostet: 28.08.2021 - 13:39 Uhr  ·  #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
Schreiberling
Avatar
Geschlecht:
Herkunft: Germany
Alter: 59
Beiträge: 988
Dabei seit: 09 / 2007
Betreff:

Re: Compiler bug?

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

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

Zitat

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
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Alter: 60
Beiträge: 2155
Dabei seit: 03 / 2003
Betreff:

Re: Compiler bug?

 · 
Gepostet: 29.08.2021 - 11:39 Uhr  ·  #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
Geschlecht:
Alter: 25
Beiträge: 1474
Dabei seit: 03 / 2005
Betreff:

Re: Compiler bug?

 · 
Gepostet: 29.08.2021 - 12:38 Uhr  ·  #12
Hi Miparo

Fix attached.

Zitat
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
Geschlecht:
Alter: 25
Beiträge: 1474
Dabei seit: 03 / 2005
Betreff:

Re: Compiler bug?

 · 
Gepostet: 29.08.2021 - 12:43 Uhr  ·  #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
Schreiberling
Avatar
Geschlecht:
Herkunft: Germany
Alter: 59
Beiträge: 988
Dabei seit: 09 / 2007
Betreff:

Re: Compiler bug?

 · 
Gepostet: 29.08.2021 - 20:25 Uhr  ·  #14
Zitat geschrieben von Merlin

Hi Miparo

Fix attached.

Zitat
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 :)
Zitat

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
Geschlecht:
Herkunft: Belgrade, Serbia
Alter: 54
Homepage: rs.linkedin.com/in…
Beiträge: 653
Dabei seit: 07 / 2002
Betreff:

Re: Compiler bug?

 · 
Gepostet: 30.08.2021 - 09:29 Uhr  ·  #15
Zitat geschrieben von 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
Geschlecht:
Alter: 25
Beiträge: 1474
Dabei seit: 03 / 2005
Betreff:

Re: Compiler bug?

 · 
Gepostet: 30.08.2021 - 09:42 Uhr  ·  #16
Thank Avra, I will look into this.
  • 1
  • 2
  • 3
  • Seite 2 von 3
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   132   146 · Page-Gen-Time: 0.039419s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI