Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2.1k
    • Issues 2.1k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #39339
Closed
Open
Issue created Aug 21, 2021 by Peacoor@PeaZombossContributor

CodeTools: error when '{$Align X}' in code

  • Lazarus/FPC Version: Lazarus 2.3.0 rmain-0-g1e64a658 FPC 3.3.1 i386-win32-win32/win64
  • Operating System: Windows 10 19043.1165
  • CPU / Bitness: 64 bit

What happens

When the code have {$Align X} ('X' is a number in 1, 2, 4, 8, 16 or 32)

The codetools will raise an exception with message

'project1.lpr(3,9) Error: invalid flag value "" for directive Align'

But if use {$ALIGN 16}(all uppercase) will not

What did you expect

Codetools should not raise the exception

Steps to reproduce

program Project1;

{$Align 16}

begin

end.

Just press 'ctrl+space'

Edited Aug 25, 2021 by Peacoor
Assignee
Assign to
Time tracking