View Issue Details

IDProjectCategoryView StatusLast Update
0031417FPCDocumentationpublic2017-02-22 20:04
ReporterLycheeAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.0.0Product Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0031417: Issues with Align directive documentation
DescriptionAlign directive docs [*] reads:
> Thus, the following {$A 8} is equivalent to {$PACKRECORDS 8}
{$A 8} throws me a compiler error. {$ALIGN 8} or {$A8} does compile though.

I assume a typo ?

.. continues:
> and specifies to the compiler that all data inside a record should be
> aligned on 8 byte boundaries.
$ALIGN documentation should either follow $PACKRECORDS documentation that clearly states differently or the $ALIGN directive does not do as advertised.

It is at the least misleading.

[*] http://www.freepascal.org/docs-html/3.0.0/prog/progsu1.html#x8-70001.2.1
TagsNo tags attached.
Fixed in Revision1397
FPCOldBugId
FPCTarget
Attached Files

Activities

Thaddy de Koning

2017-02-20 09:59

reporter   ~0098327

The link should be
http://www.freepascal.org/docs-html/3.0.2/prog/progsu1.html#x8-70001.2.1

But it is still wrong, should be $A8, not $A 8. etc.

Lychee

2017-02-20 14:04

reporter   ~0098336

Last edited: 2017-02-20 15:21

View 4 revisions

Ah, the new documentation is up already. I did not realize that. Thanks for the correction Thaddy.

Dunno if it is allowed inside one ticket but in case someone looking at this, perhaps at same time can be taken care of the {$A8 } example here [1] (note the space after).

Same can be said for documentation about Packrecords directive [2]:
{$A1 }
{$A2 }
{$A4 }
{$A8 }

[1] http://www.freepascal.org/docs-html/3.0.2/prog/progsu2.html#x9-80001.2.2
[2] http://www.freepascal.org/docs-html/3.0.2/prog/progsu60.html#x67-660001.2.60

Michael Van Canneyt

2017-02-22 20:04

administrator   ~0098379

Fixed the example, removed comment about alignment

Issue History

Date Modified Username Field Change
2017-02-20 04:03 Lychee New Issue
2017-02-20 04:03 Lychee Status new => assigned
2017-02-20 04:03 Lychee Assigned To => Michael Van Canneyt
2017-02-20 09:59 Thaddy de Koning Note Added: 0098327
2017-02-20 14:04 Lychee Note Added: 0098336
2017-02-20 15:13 Lychee Note Edited: 0098336 View Revisions
2017-02-20 15:13 Lychee Note Edited: 0098336 View Revisions
2017-02-20 15:21 Lychee Note Edited: 0098336 View Revisions
2017-02-22 20:04 Michael Van Canneyt Fixed in Revision => 1397
2017-02-22 20:04 Michael Van Canneyt Note Added: 0098379
2017-02-22 20:04 Michael Van Canneyt Status assigned => resolved
2017-02-22 20:04 Michael Van Canneyt Fixed in Version => 3.1.1
2017-02-22 20:04 Michael Van Canneyt Resolution open => fixed
2017-02-22 20:04 Michael Van Canneyt Target Version => 3.2.0